Profiles store authentication credentials and default context (organization and GVC) for the Control Plane CLI. They enable you to switch between different environments and accounts without re-authenticating.Documentation Index
Fetch the complete documentation index at: https://docs.controlplane.com/llms.txt
Use this file to discover all available pages before exploring further.
Why use profiles
Multiple orgs and environments
Separate profiles for each org (dev, staging, production)
Multiple accounts
Switch between user and service accounts easily
Secure credentials
Store tokens in a profile instead of passing them with every command
CI/CD friendly
Create dedicated profiles for automation
Working with profiles
List all profiles
View a specific profile
Create a new profile
- Interactive login
- Service account token
The profile name is optional. If omitted, the CLI creates or updates the
default profile.Set default profile
--profile.
Update a profile
Update the organization, GVC, or default status for a profile and set it as the default:Clear default context
Remove the default organization or GVC from a profile by passing an empty string:Delete a profile
Profile properties
Each profile stores authentication and configuration settings that apply to all CLI commands.Context properties
| Property | Flag | Description |
|---|---|---|
| Organization | --org | Default org for all commands |
| GVC | --gvc | Default GVC for workload and identity commands |
Output properties
| Property | Flag | Description | Default |
|---|---|---|---|
| Output format | --output | text, json, yaml, json-slim, yaml-slim | text |
| Color | --color | Enable colored output (true/false) | true |
| Timestamps | --ts | Timestamp format: iso, local, age | age |
| Max records | --max | Maximum records to display | 50 |
Request properties
| Property | Flag | Description | Default |
|---|---|---|---|
| Token | --token | Authentication token | Set via login |
| Endpoint | --endpoint | API endpoint URL | https://api.cpln.io |
| Insecure | --insecure | Skip TLS verification (true/false) | false |
Override context
Override profile context
Override defaults for a single command:Environment variable overrides
Set these environment variables to override profile defaults:CPLN_PROFILE- The profile name that will become the defaultCPLN_TOKEN- Authentication tokenCPLN_ORG- Default organizationCPLN_GVC- Default GVC
View profile token
Display the token for a profile (useful for debugging or CI/CD setup):Profile best practices
Use descriptive profile names
Use descriptive profile names
Name profiles by environment or purpose:
dev,staging,productionorg1-prod,org2-stagingci,local-dev
Set default org and GVC in profiles
Set default org and GVC in profiles
Reduce the need for
--org and --gvc flags by setting defaults:Verify profile before mutating operations
Verify profile before mutating operations
Always check your active profile before running destructive commands:Look for the profile marked as default with a star
*.Use dedicated profiles for CI/CD
Use dedicated profiles for CI/CD
First, set your environment variables:Then create a profile and set it as default:The CLI automatically uses the environment variables for authentication and context.See CI/CD usage for details.
Common pitfalls
Next steps
Common Options
Learn about all shared CLI flags
CI/CD Setup
Configure profiles for automation