Download the PHP package dniccum/secret-stash-cli without Composer
On this page you can find all versions of the php package dniccum/secret-stash-cli. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download dniccum/secret-stash-cli
More information about dniccum/secret-stash-cli
Files in dniccum/secret-stash-cli
Package secret-stash-cli
Short Description A PHP-based Composer package to interact with the SecretStash environment variable service.
License MIT
Homepage https://github.com/dniccum/secret-stash-cli
Informations about the package secret-stash-cli
SecretStash CLI
A Laravel Composer package that provides Artisan commands for interacting with the SecretStash REST API. Manage your environment variables directly from the command line with an intuitive, interactive interface.
Requirements
- PHP 8.2 or higher
- Laravel 11 or higher
- A SecretStash API Key
Installation
Install the package via Composer:
Run the installer to publish the configuration file and generate the encryption keys used to secure your variables:
[!IMPORTANT] This package creates a
~/.secret-stashdirectory on your machine (or the path specified by theSECRET_STASH_KEY_DIRenvironment variable). Ensure this folder is secure as it contains the keys required to decrypt your environment variables.
Configuration
Add the following environment variables to your application's .env file:
- API Key: Create a token in SecretStash by navigating to your profile settings and accessing the "Tokens" tab.
- Application ID: Create or select an application in SecretStash and copy its ID from the dashboard.
[!NOTE] Both the API key and Application ID are required. The CLI will throw an error if either is missing.
Quick Example
Pull your environment's variables from SecretStash into your local .env file:
Push your local .env variables to SecretStash:
For the full list of available commands and options, visit the SecretStash CLI documentation.
Testing
or:
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Credits
- Doug Niccum
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of secret-stash-cli with dependencies
endroid/qr-code Version ^5.0.9
guzzlehttp/guzzle Version ^7.10
illuminate/collections Version ^11.0|^12.0|^13.0
illuminate/console Version ^11.0|^12.0|^13.0
illuminate/contracts Version ^11.0|^12.0|^13.0
illuminate/http Version ^11.0|^12.0|^13.0
illuminate/support Version ^11.0|^12.0|^13.0
laravel/prompts Version ^0.3.0
nesbot/carbon Version ^3.11
spatie/laravel-package-tools Version ^1.16