Skip to content

run

Run a local command with the service’s config vars injected

Execute a command locally with the linked service’s configuration variables injected as environment variables.

Requires a fully linked directory (workspace/project/env/service) or an explicit service path argument. Fetches all non-secret configuration variables from the API and passes them as environment variables to the specified command.

ancla run [ws/proj/env/svc] -- <command> [args...] [flags]
ancla run -- python manage.py migrate
ancla run my-ws/my-proj/staging/my-svc -- env | grep DATABASE
-h, --help help for run
--api-key string API key for authentication
--config string config file (default: ~/.ancla/config.yaml)
--json Shorthand for --output json
-o, --output string Output format: table or json (default "table")
-q, --quiet Suppress non-essential output
  • ancla - Ancla CLI — manage your Ancla PaaS deployments