PRE-RELEASE: route commands are not GA yet. Their arguments, flags, and output may change.
list
Options
TEXT
Filter JSON output with a jq expression; implies —output json (or jsonl for streamed commands)
TEXT
default:"text"
Output formatOne of:
text, json, jsonl, noneTEXT
Use a specific stored profile for this command, overriding BASETEN_PROFILE and the current profile
BOOL
Enable verbose logging
Examples
List your routes API keysFilter output with --jq
Print key prefixes
Output
Text mode (--output text): Table with NAME, PREFIX, TEAM, CREATED, and LAST USED columns.
JSON mode (--output json): payload type managementapi.APIKeys.
delete
--all. Harnesses using a deleted key lose access until you rerun harness setup on that machine, which creates a new key.
Options
BOOL
Delete all your routes API keys, on every machine and team.Mutually exclusive with other flags in group
key.TEXT
Filter JSON output with a jq expression; implies —output json (or jsonl for streamed commands)
TEXT
default:"text"
Output formatOne of:
text, json, jsonl, noneTEXT
Prefix of the key to delete, as shown by route api-key list.Mutually exclusive with other flags in group
key.TEXT
Use a specific stored profile for this command, overriding BASETEN_PROFILE and the current profile
BOOL
Skip the interactive confirmation prompt. Required when stdin is not a terminal.
BOOL
Enable verbose logging
Examples
Delete a lost machine’s keyFilter output with --jq
Print deleted prefixes
Output
Text mode (--output text): Each deleted prefix, on stderr.
JSON mode (--output json): payload type cmd.RouteAPIKeyDeleteResult.
deleted lists the deleted prefixes and failed the ones that could not be deleted. The command fails if any deletion failed.