Skip to content

init

Link this directory to an Ancla workspace/project/env/service

Initialize (link) the current directory to an Ancla service.

This interactive command walks you through selecting a workspace, project, environment, and service, then saves the link context to a local .ancla/config.yaml file. Subsequent commands run from this directory will automatically use the linked workspace, project, env, and service without requiring explicit arguments.

ancla init [flags]
ancla init
ancla init # re-link to a different service
-h, --help help for init
--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