API keys for the CLI
API keys authenticate the Turtini CLI when building and publishing modules.
To create an API key:
1. Go to Partner Portal → Settings
2. Enter a name for the key (e.g. "Local dev", "GitHub Actions")
3. Click "Create key"
4. Copy the full key immediately — it is only shown once
5. The key is stored as a hash; the raw value cannot be recovered after you dismiss the reveal banner
To use your API key:
Option A — CLI login (recommended for local dev):
turtini-dev login
# Paste your key when prompted. Saved to ~/.turtini/config.json.
Option B — Environment variable (recommended for CI/CD):
export TURTINI_API_KEY=trk_…
turtini-dev publish
To revoke a key:
1. Go to Partner Portal → Settings
2. Find the key in the list
3. Click "Revoke" → confirm "Yes, revoke"
Revoked keys stop working immediately. If a key is compromised, revoke it and create a new one.
Keys are scoped to your org — they can only publish modules belonging to your org.