Stashbase

Config

Configuration for the CLI

With the config command, you can configure the behavior of the command line interface. For example, you can set the api key or the default output format for returned data.

stashbase config <COMMAND> [OPTIONS]

API Key

The API key used to authenticate your requests to Stashbase API.

Set

Set the API key for the CLI. After this command you will be prompted to enter the API key safely, so the key is not exposed in the shell history.

stashbase config api-key set

Print

Print the current API key (last 5 characters).

Output

Default output format is used for formatting the output of returned data, except secrets.

Set

Set default output format. Possible values are list, table and json.

stashbase config output set table

Print current default output format.

Output secrets

Default output format is used for formatting the output of secrets.

Set

Set default output format. Possible values are list, dotenv, table and json.

stashbase config output-secrets set dotenv

Print current default output format for secrets.

Print the current configuration.

Options

Prop

Type

stashbase config print

Expand refs

Expand secrets references by default for the "list" and "get" secrets commands.

Set

Set default expand-refs. Possible values are true or false.

stashbase config expand-refs set true

Print current expand-refs configuration.

Print the current configuration.

stashbase config print

Reset

Reset the configuration to the default values.

stashbase config reset

Options

Prop

Type

On this page