CLI reference/Rotation, leases and syncs/tokens
clavis tokens create
Save a provider credential for the organization
sh
clavis tokens create NAME [flags]Save a provider credential for the organization. Pass --token - to read it from stdin.
Examples
sh
clavis tokens create "Home Forgejo" --provider forgejo --url https://git.example.com --token -
clavis tokens create "GitHub org" --provider github --token "$GITHUB_TOKEN"Flags
--aws-access-key string- AWS access key ID
--aws-secret-key string- AWS secret access key
--aws-session-token string- AWS session token
--gcp-service-account-json string- GCP service account JSON or @file
--github-app-id string- GitHub App ID
--github-installation-id string- GitHub App installation ID
--github-private-key string- GitHub App private key PEM or @file
--provider string- forgejo, github, gitlab, flyio, vercel, netlify, cloudflare, vault, aws, or gcp
--token string- access token (Forgejo, GitHub, GitLab, Vercel, Netlify, Cloudflare, Vault); - reads stdin
--url string- instance or API URL (defaults to the public service)
Global flags
These work with every command.
--debug- enable debug logging
--env string- environment slug
--json- output machine-readable JSON
--org string- organization slug
--overlay string- tenant/region overlay slug
--path string- folder path (default /)
--project string- project slug
--server string- Clavis server URL (default: from .clavis.yaml or saved login)
-h, --help- help for any command