Skip to content
Live $100 credit at signup, up to $300 total Offer ends December 31, 2026 Get started →

CLI Quickstart

Get authenticated and manage your first resource from the terminal.

zcp profile add

You’ll be prompted for:

  • Profile name (e.g., default)
  • Bearer token: get this from the portal under Profile → API Tokens
  • API URL: https://api.zcp.zsoftly.ca/api
  • Default region (e.g., yow-1) and default project (e.g., default-9)

The default region and project are saved to the profile and used by every region/project-scoped command, so you don’t have to pass --region/--project each time (like aws configure).

Verify authentication:

zcp auth validate
# List available regions
zcp region list
# List available plans
zcp plan vm
# List your projects
zcp project list
# List available templates (OS images)
zcp template list --region yow-1
# Create an instance
zcp instance create \
--name my-server \
--template ubuntu-2604-lts \
--plan ci1xs \
--region yow \
--network my-public-network
# List your instances
zcp instance list
# Get instance details
zcp instance get my-server
# Power off
zcp instance stop my-server
# Reboot
zcp instance reboot my-server
# Delete
zcp instance delete my-server
# JSON output (great for scripting)
zcp instance list --output json
# YAML output
zcp instance list --output yaml
# Pipe to jq
zcp instance list -o json | jq '.[].name'
# Use environment variables with no config file
export ZCP_BEARER_TOKEN="your-token"
export ZCP_API_URL="https://api.zcp.zsoftly.ca/api"
export ZCP_PROJECT="default"
zcp instance list -o json

See also: Configuration, CLI Reference