cli-keys
Create, list, rotate, and revoke NextRoute API keys from the CLI. Manage OAuth flows for provider authentication and inspect key scopes and expiration.
SKILL.mdskills/cli-keys/SKILL.md
GitHub<!-- generated by src/lib/agentSkills/generator.ts; manual edits will be overwritten -->
Overview
Create, list, rotate, and revoke NextRoute API keys from the CLI. Manage OAuth flows for provider authentication and inspect key scopes and expiration.
Quick install
npm install -g nextroute # or: npx nextroute
nextroute --version
Subcommands
keys
Example:
nextroute keys
keys add <provider> [apiKey]
Flags:
--stdin
Example:
nextroute keys add <provider> [apiKey]
keys list
Flags:
--json
Example:
nextroute keys list
keys remove <provider>
Flags:
--yes
Example:
nextroute keys remove <provider>
keys regenerate <id>
Flags:
--yes
Example:
nextroute keys regenerate <id>
keys revoke <id>
Flags:
--yes
Example:
nextroute keys revoke <id>
keys reveal <id>
Example:
nextroute keys reveal <id>
keys usage <id>
Flags:
--limit <n>
Example:
nextroute keys usage <id>
keys policy
Example:
nextroute keys policy
keys show <id>
Example:
nextroute keys show <id>
keys set <id>
Flags:
--rate-limit <n>--max-cost <n>--allowed-models <list>
Example:
nextroute keys set <id>
keys expiration
Example:
nextroute keys expiration
keys list
Flags:
--days <n>--json
Example:
nextroute keys list
keys rotate <id>
Flags:
--grace-period <ms>--yes
Example:
nextroute keys rotate <id>
oauth
Example:
nextroute oauth
oauth providers
Example:
nextroute oauth providers
oauth start
Flags:
--no-browser--import-from-system--social <s>--timeout <ms>
Example:
nextroute oauth start
oauth status
Flags:
--provider <id>
Example:
nextroute oauth status
oauth revoke
Flags:
--connection-id <id>--yes
Example:
nextroute oauth revoke