Skip to Content
CLI & APICommand reference

stackblaze link

Link this directory to a project / environment / app (.stackblaze/project.json)

Usage: stackblaze link [options]

Link this directory to a project / environment / app (.stackblaze/project.json)

Options:
  --api-url <url>        StackBlaze API base URL (env STACKBLAZE_API_URL)
  --token <token>        API token, sb_pat_... (env STACKBLAZE_TOKEN)
  -p, --project <name>   Project name
  -e, --env <name>       Environment name (default: production)
  -a, --app <name>       App name
  --json                 Output JSON (same as -o json) (default: false)
  -o, --output <format>  Output format: text or json (choices: "text", "json")
  -h, --help             Print help

Example

Link the current folder to the nginx-9agm app in the dev environment of github-demo-gv35, so later commands run in this folder need no -p/-e/-a:

cd shop
stackblaze link -p github-demo-gv35 -e dev -a nginx-9agm
OK Linked github-demo-gv35 / dev / nginx
saved to /tmp/shop/.stackblaze/project.json

On this page