--env
- Path to the environment variables file (`.env` format)
Run composition.
toa compose [paths]
-
paths
Glob patterns to look for components.
--kill
Shutdown composition after it's started
--dock
Run in Docker using current.env
.
--context
Path to the Context root (default.
).
--bindnings
Override bindings (obsolete).
Note that your
localhost
it is accessible from a container ashost.docker.internal
.
Call endpoint.
toa call <endpont> [request]
-
endpoint
endpoint to call.
request
Request object.
$ toa call dummies.dummy.create "{ input: { name: 'foo' } }"
Export environment to a .env
file.
toa env [environment]
-
environment
deployment environment name (defaultlocal
).
--path
path to a Context (default.
)
--as
output file path (default.env
)
--interactive
prompt for secret values
Credentials specified in the output file are preserved.
It is recommended to add
.env*
to.gitignore
.
toa export manifest
- Print normalized manifest.
--path
path to a component (default.
)
--jsonpath
JSONPath expression to filter the output
--error
print errors only
--output
output format (defaultyaml
)
toa export secrets <environment>
- Print deployment secrets.
--path
path to context (default.
)
toa export tags <environment>
- Print image tags.
--path
path to context (default.
)
Some commands use current
kubectl
anddocker
context.
Build Docker images.
toa build
-
--path
path to a Context (default.
)
Deploy a Context.
- Build Docker images.
- Push Docker images to the registry.
- Build a Helm chart.
- Apply the Helm chart to the current Kubernetes context.
toa deploy [environment]
-
environment
deployment environment name (defaultdefault
).
--path
path to a Context (default.
)
--namespace
Kubernetes namespace to apply the Helm chat to
--wait
wait until all Pods [are ready](https://helm.sh/docs/intro/using_helm/#helpful-options-for-installupgraderollback)
--dry
do not apply the Helm chart
Deploy a generic Kubernetes secret with the prefix toa-
.
toa conceal <secret> <key-values...>
-
secret
Secret name.
key-values
List of keys and values of the secret askey=value
.
--namespace
Kubernetes namespace where the secret should be deployed.
--interactive
prompt for secret values
--environment
environment name for interactive mode
--path
path to a context for interactive mode
If a secret already exists, then given
key-values
will be added to it.
$ toa conceal bindings-amqp-default username=developer password=secret
Outputs keys and values of a secret.
-
toa reveal <secret>
Run interactive shell inside a disposable pod inside a Kubernetes cluster.
-
toa shell [image]
-
image
Docker image to Run (defaultalpine
).
$ toa shell mongo
$ toa shell -- ping 1.1 # extra arguments can be passed
Generate a secret PASETO key.
-
toa key
-
--public
boolean
generate a public/private key pair.