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.
It's recommended to store your API token in your .env file as SECRET_STASH_API_TOKEN rather than hardcoding it in the configuration file.
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.
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.
Note that variables starting with the SECRET_STASH_ prefix are always ignored by default and do not need to be added to this list.
API URL
The base URL for your SecretStash API instance. This should include the protocol (http/https) and domain, but not the /api path.
This is only for testing and evaluation purposes.
Environment Variables
While you can modify the configuration file directly, most settings can be managed via your .env file:
| Variable | Description | Default |
|---|---|---|
SECRET_STASH_API_TOKEN | Your personal API token | null |
SECRET_STASH_APPLICATION_ID | Your SecretStash Application ID | null |
SECRET_STASH_API_URL | The base URL for the SecretStash API | https://secretstash.cloud |
Learn how to use these settings in the Commands section.