Skip to content

Manage Chronicle applications with Cratis CLI

Applications are OAuth clients authorized to connect to Chronicle. They represent non-human principals — services, workers, or CI pipelines — that authenticate using client credentials rather than a username and password. Applications are distinct from users: a user logs in interactively, while an application uses a client ID and secret to obtain tokens programmatically.

Listing, adding and removing applications needs a Chronicle administrator. Sign in as one first, then run the command:

Terminal window
cratis chronicle login admin
cratis chronicle applications list

An application’s client credentials, including the development client, are refused. Chronicle then answers with this hint:

This command needs a Chronicle administrator. Run 'cratis chronicle login <administrator-username>' to sign in as one.

Lists all OAuth client applications registered on the Chronicle server.

Terminal window
cratis chronicle applications list

List all registered applications:

Terminal window
cratis chronicle applications list

List in plain format:

Terminal window
cratis chronicle applications list --output plain

Registers a new OAuth client application with the specified client ID and secret.

Terminal window
cratis chronicle applications add <CLIENT_ID> <CLIENT_SECRET>
Argument Description
CLIENT_ID The client identifier for the application.
CLIENT_SECRET The client secret the application uses to authenticate.

Register a new application:

Terminal window
cratis chronicle applications add my-service my-secret-value

A variable can keep the literal secret out of the command recorded in shell history, but shell expansion still places the secret in the process arguments, where process inspection or argument logging may expose it. Supplying the value from an environment variable or secrets manager does not remove that exposure:

Terminal window
cratis chronicle applications add my-service "$APP_SECRET"

Removes the application’s credential registration from Chronicle. This operation is irreversible. Do not treat removal as a guarantee that all previously issued tokens are immediately revoked.

Terminal window
cratis chronicle applications remove <APP_ID>

The command prompts for confirmation before proceeding. Pass --yes to skip the prompt in automated workflows.

Argument Description
APP_ID The GUID of the application to remove. Use applications list to retrieve application IDs.
Flag Description
-y, --yes Skip confirmation prompt.

Remove an application interactively:

Terminal window
cratis chronicle applications remove a1b2c3d4-e5f6-7890-abcd-ef1234567890

Remove without confirmation:

Terminal window
cratis chronicle applications remove a1b2c3d4-e5f6-7890-abcd-ef1234567890 --yes