Installation and setup
cpln: command not found
cpln: command not found
Problem: The CLI is installed but not found when running
cpln.Solutions:-
Verify the installation:
- bash/zsh
- PowerShell
- Command Prompt
-
Check if the binary is on your PATH:
- macOS/Linux
- PowerShell
- Command Prompt
Ensure/usr/local/bin(or your installation directory) is included. -
Reinstall the CLI:
- npm
- Homebrew
- Binary
- Restart your terminal after installation.
Permission denied when installing
Permission denied when installing
Problem: Installation fails with permission errors.Solutions:
- npm
- Binary
Use Add to your shell profile (Reload and reinstall:
sudo (not recommended) or configure npm to install globally without sudo:~/.bashrc, ~/.zshrc, etc.):Authentication
Authentication failed or 403
Authentication failed or 403
Problem: Commands fail with authentication errors.Solutions:
-
Check for typos in the org name:
Verify the
orgvalue is correct. A 403 often means you’re trying to access an org that doesn’t exist or that you don’t have access to. -
Re-authenticate:
-
Check which profile is marked as active with a star
*: -
Verify the token is valid:
-
For service accounts, regenerate the key:
Update your profile with the new token:Make sure the service account is assigned to a group that has the necessary permissions to access and manage resources (e.g. the
superusersgroup).When using--token, always include--gvcto preserve or set your default GVC context.
Login opens the wrong browser
Login opens the wrong browser
Problem:
cpln login opens a browser you don’t use.Solutions:- Copy the URL from the terminal and paste it into your preferred browser.
- Change your system’s default browser (OS-specific).
- Use a service account token instead of interactive login. See Authentication.
Login doesn't work in WSL2
Login doesn't work in WSL2
Problem: After installation, Chrome appears in your Windows Start menu under the distro name (e.g., Ubuntu → Google Chrome). Run
cpln login opens a localhost URL that doesn’t work in your Windows browser.Cause: The localhost URL points to the WSL2 instance, not Windows.Solution: Install a browser in WSL2 (requires WSLg):cpln login, copy the localhost URL from the terminal, and paste it into your WSL2 Chrome.Alternative: Use browser-less login with a service account token.Wrong organization or GVC context
Wrong organization or GVC context
Problem: Commands execute in the wrong org or GVC.Solutions:
-
Check your active profile:
-
Override for a single command:
-
Update your profile defaults:
-
Use a different profile:
-
Set environment variables:
Connectivity and network
TLS certificate errors
TLS certificate errors
Problem: Commands fail with TLS/SSL errors.Solutions:
- Verify your system’s certificate trust store is up to date.
- Check if you’re behind a corporate proxy or firewall that intercepts TLS.
-
As a temporary workaround (not recommended for production):
- Contact your network administrator to add Control Plane’s certificate to your trust store.
Connection timeout or network errors
Connection timeout or network errors
Problem: Commands fail with timeout or connection errors.Solutions:
- Check your internet connection.
-
Verify you can reach the Control Plane API:
- Check if you’re behind a proxy.
Output and display
Output is truncated or incomplete
Output is truncated or incomplete
Problem: Text output doesn’t show all data.Solutions:
-
Use JSON or YAML output for complete data:
-
Increase the max results:
-
Use
json-slimoryaml-slimfor cleaner structured output:
Color codes in logs or files
Color codes in logs or files
Problem: Log files contain ANSI color codes.Solutions:
-
Disable color:
-
Color is automatically disabled when stdout is not a terminal. Redirect to a file:
Commands and operations
Command not found or unknown flag
Command not found or unknown flag
Problem: CLI doesn’t recognize a command or flag.Solutions:
-
Verify you’re using the correct command syntax:
-
Check your CLI version:
-
Update to the latest version:
- npm
- Homebrew
- Binary
Debugging
Enable verbose or debug output to troubleshoot issues:Getting help
If you can’t resolve the issue:- Email us at [email protected]
- Reach out on Slack through the support channel