mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat: add CLI commands to manage AI Gateway keys (#25689)
Adds `coder ai-gateway keys` commands: * `create <name>` creates key with given name * `list` lists existing keys (alias `ls`) * `delete <name | id>` removes key matching by name or key id, name has priority (alias `rm`)
This commit is contained in:
Generated
+16
@@ -0,0 +1,16 @@
|
||||
<!-- DO NOT EDIT | GENERATED CONTENT -->
|
||||
# ai-gateway
|
||||
|
||||
Manage AI Gateway
|
||||
|
||||
## Usage
|
||||
|
||||
```console
|
||||
coder ai-gateway
|
||||
```
|
||||
|
||||
## Subcommands
|
||||
|
||||
| Name | Purpose |
|
||||
|-------------------------------------------|------------------------|
|
||||
| [<code>keys</code>](./ai-gateway_keys.md) | Manage AI Gateway keys |
|
||||
Generated
+18
@@ -0,0 +1,18 @@
|
||||
<!-- DO NOT EDIT | GENERATED CONTENT -->
|
||||
# ai-gateway keys
|
||||
|
||||
Manage AI Gateway keys
|
||||
|
||||
## Usage
|
||||
|
||||
```console
|
||||
coder ai-gateway keys
|
||||
```
|
||||
|
||||
## Subcommands
|
||||
|
||||
| Name | Purpose |
|
||||
|----------------------------------------------------|--------------------------|
|
||||
| [<code>create</code>](./ai-gateway_keys_create.md) | Create an AI Gateway key |
|
||||
| [<code>delete</code>](./ai-gateway_keys_delete.md) | Delete an AI Gateway key |
|
||||
| [<code>list</code>](./ai-gateway_keys_list.md) | List AI Gateway keys |
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
<!-- DO NOT EDIT | GENERATED CONTENT -->
|
||||
# ai-gateway keys create
|
||||
|
||||
Create an AI Gateway key
|
||||
|
||||
## Usage
|
||||
|
||||
```console
|
||||
coder ai-gateway keys create <name>
|
||||
```
|
||||
+24
@@ -0,0 +1,24 @@
|
||||
<!-- DO NOT EDIT | GENERATED CONTENT -->
|
||||
# ai-gateway keys delete
|
||||
|
||||
Delete an AI Gateway key
|
||||
|
||||
Aliases:
|
||||
|
||||
* rm
|
||||
|
||||
## Usage
|
||||
|
||||
```console
|
||||
coder ai-gateway keys delete [flags] <name|id>
|
||||
```
|
||||
|
||||
## Options
|
||||
|
||||
### -y, --yes
|
||||
|
||||
| | |
|
||||
|------|-------------------|
|
||||
| Type | <code>bool</code> |
|
||||
|
||||
Bypass confirmation prompts.
|
||||
+34
@@ -0,0 +1,34 @@
|
||||
<!-- DO NOT EDIT | GENERATED CONTENT -->
|
||||
# ai-gateway keys list
|
||||
|
||||
List AI Gateway keys
|
||||
|
||||
Aliases:
|
||||
|
||||
* ls
|
||||
|
||||
## Usage
|
||||
|
||||
```console
|
||||
coder ai-gateway keys list [flags]
|
||||
```
|
||||
|
||||
## Options
|
||||
|
||||
### -c, --column
|
||||
|
||||
| | |
|
||||
|---------|---------------------------------------------------------------|
|
||||
| Type | <code>[id\|name\|key prefix\|created at\|last used at]</code> |
|
||||
| Default | <code>id,name,key prefix,last used at,created at</code> |
|
||||
|
||||
Columns to display in table output.
|
||||
|
||||
### -o, --output
|
||||
|
||||
| | |
|
||||
|---------|--------------------------|
|
||||
| Type | <code>table\|json</code> |
|
||||
| Default | <code>table</code> |
|
||||
|
||||
Output format.
|
||||
Generated
+1
@@ -66,6 +66,7 @@ Coder — A tool for provisioning self-hosted development environments with Terr
|
||||
| [<code>support</code>](./support.md) | Commands for troubleshooting issues with a Coder deployment. |
|
||||
| [<code>server</code>](./server.md) | Start a Coder server |
|
||||
| [<code>provisioner</code>](./provisioner.md) | View and manage provisioner daemons and jobs |
|
||||
| [<code>ai-gateway</code>](./ai-gateway.md) | Manage AI Gateway |
|
||||
| [<code>agent-firewall</code>](./agent-firewall.md) | Network isolation tool for monitoring and restricting HTTP/HTTPS requests |
|
||||
| [<code>features</code>](./features.md) | List Enterprise features |
|
||||
| [<code>licenses</code>](./licenses.md) | Add, delete, and list licenses |
|
||||
|
||||
Reference in New Issue
Block a user