Skip to content

link

Associate this directory with a workspace, project, env, or service

Associate the current directory with an Ancla workspace, project, environment, or service.

This creates a local .ancla/config.yaml that stores the link context so subsequent commands (status, logs, run, deploy) can infer the target without requiring explicit arguments.

Examples: ancla link my-ws # link to workspace only ancla link my-ws/my-proj # link to workspace and project ancla link my-ws/my-proj/staging # link to workspace, project, and env ancla link my-ws/my-proj/staging/my-svc # link to all four segments

ancla link <ws>[/<proj>[/<env>[/<svc>]]] [flags]
ancla link my-ws/my-proj/staging/my-svc
-h, --help help for link
--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