Prerequisites
Required permissions
Required permissions
The user setting this up must be a member of the superusers group or have a policy targeting service accounts with these permissions:
createeditaddKey
CLI installed
CLI installed
Install the Control Plane CLI before proceeding. See Installation.
Setup
1
Create a service account
- Console
- CLI
- Navigate to Service Accounts in the left menu
- Click New or use the Create dropdown
- Enter a unique name and optional description
- Assign to a group (e.g.,
superusers,viewers, or a custom group) to grant initial permissions - Click Create
See the Create a Service Account guide for detailed instructions.
2
Generate a key
- Console
- CLI
- Open the service account you created
- Click the Keys link
- Enter a key description and click Add
- Copy and securely store the generated key
3
Grant permissions
Create policies to grant the service account access to the resources it needs (GVCs, workloads, secrets, etc.).
- Console
- CLI
See the Policy guide for creating policies via the console.
4
Create a CLI profile
Configure the CLI to use the service account token:
When using
--token, always include --gvc to set a default GVC context for your commands.Your CLI is now configured for browser-less access. Test it with:
Alternative: Environment variables
Instead of creating a profile, you can use environment variables:Troubleshooting
Commands fail with permission errors
Commands fail with permission errors
If CLI commands fail with permission errors:
- Test with superusers: Temporarily add the service account to the
superusersgroup - Verify commands work: If they now work, the issue is missing permissions
- Add specific permissions: Create policies granting access to the required resources
- Remove from superusers: Once policies are in place, remove the service account from superusers
Wrong profile is being used
Wrong profile is being used
Verify the correct profile is set as default:Set the correct profile as default:
Token not working
Token not working
- Verify the token is correct and hasn’t been revoked
- Generate a new key if needed:
- Update your profile with the new token:
For more troubleshooting help, see the Troubleshooting page.