CLI Quickstart
CLI Quickstart
Section titled “CLI Quickstart”Get authenticated and manage your first resource from the terminal.
Step 1: Authenticate
Section titled “Step 1: Authenticate”zcp profile addYou’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
Verify authentication:
zcp auth validateStep 2: Explore
Section titled “Step 2: Explore”# List available regionszcp region list
# List available planszcp plan list
# List your projectszcp project listStep 3: Create a VM
Section titled “Step 3: Create a VM”# List available templates (OS images)zcp template list
# Create an instancezcp instance create \ --name my-server \ --template ubuntu-24-04 \ --plan general-1vcpu-1gb \ --region yow \ --network my-public-networkStep 4: Manage it
Section titled “Step 4: Manage it”# List your instanceszcp instance list
# Get instance detailszcp instance get my-server
# Power offzcp instance stop my-server
# Rebootzcp instance reboot my-server
# Deletezcp instance delete my-serverOutput formats
Section titled “Output formats”# JSON output (great for scripting)zcp instance list --output json
# YAML outputzcp instance list --output yaml
# Pipe to jqzcp instance list -o json | jq '.[].name'CI/CD usage
Section titled “CI/CD usage”# Use environment variables — no config file neededexport ZCP_BEARER_TOKEN="your-token"export ZCP_API_URL="https://api.zcp.zsoftly.ca/api"export ZCP_PROJECT="my-project"
zcp instance list -o jsonSee also: Configuration, CLI Reference