Skip to main content

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:

  1. Visit GitLab Personal Access Tokens
  2. Create a token with the following scopes:
    • read_api
    • read_repository
    • write_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