Authentication
Log in to the CCP CLI with your Cluster account via email OTP.
Authentication
CCP authenticates via email one-time passwords (OTP) through Supabase. Credentials are stored securely in your system keychain.
Login
ccp auth login
# Email: you@example.com
# Sending code to you@example.com...
# Check your email for a login code.
# Code: 123456
# ◼ You are now logged in!You can also pass your email directly:
ccp auth login --email you@example.comLogout
ccp auth logoutAccess Tokens
Export your access token for use in scripts or API calls:
# Print as export statement (use with eval)
eval $(ccp auth export-access-token)
# Print raw token to stdout
ccp auth print-access-tokenShell Wrapper
For convenience, add the shell wrapper to auto-export tokens:
# Print the wrapper function
ccp auth shell-setup
# Add to your ~/.zshrc:
ccp() {
case "$1:$2" in
auth:export-access-token)
eval $(command ccp "$@")
;;
*)
command ccp "$@"
;;
esac
}Auth Subcommands
| Command | Description |
|---|---|
ccp auth login | Log in via email OTP |
ccp auth logout | Log out and clear credentials |
ccp auth export-access-token | Print export TOKEN="..." for eval |
ccp auth print-access-token | Print raw JWT to stdout |
ccp auth shell-setup | Print shell wrapper for ~/.zshrc |