tractorbeam api-key
The Tractorbeam API's API key operations.
tractorbeam api-key <subcommand> [flags]
Shared flags
Every subcommand takes these flags.
| Flag | Description |
|---|---|
--config <string> |
The Project’s tractorbeam.config.ts. Defaults to the one in the current directory or its nearest ancestor. |
--workspace <string> |
Workspace name. Environment variable: TRACTORBEAM_WORKSPACE. |
--origin <string> |
The Tractorbeam origin to call instead of the default, such as a proxy’s. Environment variable: TRACTORBEAM_ORIGIN. |
--token <string> |
Access token. Defaults to the saved interactive session. Environment variable: TRACTORBEAM_TOKEN. |
api-key list
Returns the authenticated user’s API keys in the organization of the Workspace whose host the request addresses, without their values. Needs api-keys:read. Only a user can call it: through their Console sign-in, or through one of their API keys holding the permission. A service user and an App can’t.
tractorbeam api-key list [flags]
api-key get
Returns one of the authenticated user’s API keys, without its value. Another user’s key returns 404. Needs api-keys:read. Only a user can call it: through their Console sign-in, or through one of their API keys holding the permission. A service user and an App can’t.
tractorbeam api-key get [flags] <api-key>
| Argument | Description |
|---|---|
<api-key> |
api-key delete
Revokes one of the authenticated user’s API keys, including the one the request signs in with. Another user’s key returns 404. Needs api-keys:delete. Only a user can call it: through their Console sign-in, or through one of their API keys holding the permission. A service user and an App can’t.
tractorbeam api-key delete [flags] <api-key>
| Argument | Description |
|---|---|
<api-key> |