Context and profiles
Control which profile, organization, and GVC the command uses.--profile
Override the default profile for a single command.
Set a default profile with
cpln profile set-default <name> or use the CPLN_PROFILE environment variable.--org
Override the default organization.
Set a default org in your profile with
cpln profile update <name> --org <org-name>.--gvc
Override the default Global Virtual Cloud.
Set a default GVC in your profile with
cpln profile update <name> --gvc <gvc-name>.Output and formatting
Control how command results are displayed.--output or -o
Set the output format.
text(default) - Human-readable tablejson- Full JSON outputyaml- Full YAML outputjson-slim- JSON without IDs, versions, timestampsyaml-slim- YAML without IDs, versions, timestampstf- Terraform HCL formatcrd- Kubernetes Custom Resource Definitionnames- Resource names only
--color
Enable or disable colored output.
- Type: boolean
- Default:
true - Automatically disabled when stdout is not a terminal
--ts
Format timestamps in text output.
iso- ISO 8601 formatlocal- Local timezoneage- Relative time (e.g., “2 hours ago”)
Only applies when
--output=text.--max
Limit the number of records displayed.
- Type: number
- Default:
50 - Values less than 1 return all records
Request and connectivity
Control API connectivity and authentication.--token
Override the authentication token for a single command.
View your profile’s token with
cpln profile token <profile-name>.--endpoint
Override the API URL.
- Default:
https://api.cpln.io/
--insecure or -k
Ignore TLS certificate errors.
Resource creation and updates
Common flags forcreate, update, and patch commands.
--name
Specify the resource name.
--description or --desc
Add a description to the resource.
--tag
Add tags to a resource. Tags are key-value pairs used for organization and policy targeting.
The
= syntax auto-detects JSON types (true becomes boolean). Use : to force string values.--file or -f
Provide input from a file.
--file - to read from stdin:
Query filters
Filter results inquery subcommands.
--match
Query match type.
all(default) - Match all conditionsany- Match any conditionnone- Match none of the conditions
--property or --prop
Filter by resource property.
--tag
Filter by tag.
--rel
Filter by resource relation.
Diagnostics
Debug CLI and API interactions.--verbose or -v
Enable verbose output to stderr.
--debug or -d
Display all HTTP communications with the API.
Environment variable alternatives
Many flags can be set via environment variables:| Flag | Environment Variable |
|---|---|
--profile | CPLN_PROFILE |
--token | CPLN_TOKEN |
--org | CPLN_ORG |
--gvc | CPLN_GVC |