Configuration

Learn how to configure the SecretStash CLI package in your Laravel application.

Once you've installed the SecretStash CLI and optionally published the configuration file, you can customize its behavior in config/secret-stash.php.

Configuration Options

Below are the available configuration options and their corresponding environment variables.

API Token

Your personal API token for authenticating with the SecretStash API. You can generate this token using the secret-stash:token command or through the SecretStash web interface.

'api_token' => env('SECRET_STASH_API_TOKEN'),

Application ID

The unique application ID supplied to you by the SecretStash service. This ID identifies which application's variables the CLI should interact with.

'application_id' => env('SECRET_STASH_APPLICATION_ID'),

Ignored Variables

A list of environment variables that should be ignored when pushing to or pulling from the SecretStash API. These keys are case-sensitive.

'ignored_variables' => [],

API URL

The base URL for your SecretStash API instance. This should include the protocol (http/https) and domain, but not the /api path.

'api_url' => env('SECRET_STASH_API_URL', 'https://secretstash.cloud'),

Environment Variables

While you can modify the configuration file directly, most settings can be managed via your .env file:

VariableDescriptionDefault
SECRET_STASH_API_TOKENYour personal API tokennull
SECRET_STASH_APPLICATION_IDYour SecretStash Application IDnull
SECRET_STASH_API_URLThe base URL for the SecretStash APIhttps://secretstash.cloud