Authentication
Learn how to authenticate with the Platform CLI using your access token.
Generate Access Token
Access Token Requirements
To use the Platform CLI commands, you'll need to generate a personal access token:
- Visit GitLab Personal Access Tokens
- Create a token with the following scopes:
read_apiread_repositorywrite_repository
Configure Authentication
Once you have your access token, authenticate with the CLI using:
platform access -t "<your_token>"
Token Management
- Keep your access token secure and don't share it
- The token is stored locally for subsequent CLI operations
- You can update your token anytime by running the access command again