Skip to content

Commit 69c0083

Browse files
committed
Add API key management commands
1 parent 7af1ce4 commit 69c0083

33 files changed

Lines changed: 985 additions & 290 deletions

README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ Commands with JSON output support:
125125
- **Profiles**: `create`, `list`, `get`
126126
- **Extensions**: `upload`, `list`
127127
- **Proxies**: `create`, `list`, `get`
128+
- **API Keys**: `create`, `list`, `get`, `update`
128129
- **Apps**: `list`, `history`
129130
- **Deploy**: `deploy` (JSONL streaming), `history`
130131
- **Invoke**: `invoke` (JSONL streaming), `history`
@@ -512,6 +513,29 @@ Automated authentication for web services. The `run` command orchestrates the fu
512513
- `kernel credentials totp-code <id-or-name>` - Get current TOTP code
513514
- `--output json`, `-o json` - Output raw JSON object
514515

516+
### API Keys
517+
518+
- `kernel api-keys create` - Create a new API key
519+
- `--name <name>` - API key name (required)
520+
- `--days-to-expire <days>` - Number of days until expiry (1-3650); omit for never
521+
- `--project-id <project_id>` - Create a project-scoped API key for this project ID; omit for org-wide. This is different from global `--project`, which only scopes the CLI request.
522+
- `--output json`, `-o json` - Output raw JSON object, including the one-time plaintext key
523+
524+
- `kernel api-keys list` - List API keys
525+
- `--limit <n>` - Maximum number of results to return
526+
- `--offset <n>` - Number of results to skip
527+
- `--output json`, `-o json` - Output raw JSON array
528+
529+
- `kernel api-keys get <id>` - Get an API key
530+
- `--output json`, `-o json` - Output raw JSON object
531+
532+
- `kernel api-keys update <id>` - Update an API key
533+
- `--name <name>` - New API key name
534+
- `--output json`, `-o json` - Output raw JSON object
535+
536+
- `kernel api-keys delete <id>` - Delete an API key
537+
- `-y, --yes` - Skip confirmation prompt
538+
515539
## Examples
516540

517541
### Create a new app

0 commit comments

Comments
 (0)