PHPackages                             dniccum/secret-stash-cli - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [CLI &amp; Console](/categories/cli)
4. /
5. dniccum/secret-stash-cli

ActiveLibrary[CLI &amp; Console](/categories/cli)

dniccum/secret-stash-cli
========================

A PHP-based Composer package to interact with the SecretStash environment variable service.

v0.5.0(1mo ago)00MITPHPPHP ^8.2CI passing

Since Jan 22Pushed 1mo agoCompare

[ Source](https://github.com/dniccum/secret-stash-cli)[ Packagist](https://packagist.org/packages/dniccum/secret-stash-cli)[ Docs](https://github.com/dniccum/secret-stash-cli)[ GitHub Sponsors](https://github.com/dniccum)[ RSS](/packages/dniccum-secret-stash-cli/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (6)Dependencies (19)Versions (13)Used By (0)

[![Latest Version on Packagist](https://camo.githubusercontent.com/4cb361d9a5511eb51a382c8ef1794fd47ac87f4395df5440b894bf6ba23b6ffa/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f646e696363756d2f7365637265742d73746173682d636c692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/dniccum/secret-stash-cli)[![GitHub Tests Action Status](https://camo.githubusercontent.com/efb4f3389c19a29fc003fb36b44f5e6cae84f3abf24676f4858be3af09799f49/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f646e696363756d2f7365637265742d73746173682d636c692f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/dniccum/secret-stash-cli/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/d7c8ec576ff8168a33916b4f5bbc1e09c60b19ae7cc55608895012d8b93be04c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f646e696363756d2f7365637265742d73746173682d636c692f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/dniccum/secret-stash-cli/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/b38c6be6f8b7cb109cf6fc6c1431246861639f492f925b4139646ffdbd7724e7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f646e696363756d2f7365637265742d73746173682d636c692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/dniccum/secret-stash-cli)

[![SecretStash](og-image.png)](og-image.png)

SecretStash CLI
===============

[](#secretstash-cli)

A Laravel Composer package that provides Artisan commands for interacting with the [SecretStash](https://secretstash.cloud) REST API. Manage your environment variables directly from the command line with an intuitive, interactive interface.

Requirements
------------

[](#requirements)

- PHP 8.2 or higher
- Laravel 11 or higher
- A SecretStash API Key

Installation
------------

[](#installation)

Install the package via Composer:

```
composer require dniccum/secret-stash-cli
```

Run the installer to publish the configuration file and generate the encryption keys used to secure your variables:

```
php artisan secret-stash:install
```

Important

This package creates a `~/.secret-stash` directory on your machine. Ensure this folder is secure as it contains the keys required to decrypt your environment variables.

Configuration
-------------

[](#configuration)

Add the following environment variables to your application's `.env` file:

```
SECRET_STASH_API_TOKEN=your_token_here
SECRET_STASH_APPLICATION_ID=your_application_id_here
```

- **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
-------------

[](#quick-example)

Pull your environment's variables from SecretStash into your local `.env` file:

```
php artisan secret-stash:variables pull
```

Push your local `.env` variables to SecretStash:

```
php artisan secret-stash:variables push
```

For the full list of available commands and options, visit the [SecretStash CLI documentation](https://docs.secretstash.cloud/command-line-interface/commands).

Testing
-------

[](#testing)

```
composer test
```

or:

```
./vendor/bin/pest
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Credits
-------

[](#credits)

- [Doug Niccum](https://github.com/dniccum)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

38

—

LowBetter than 84% of packages

Maintenance96

Actively maintained with recent releases

Popularity0

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 95.3% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~10 days

Total

6

Last Release

53d ago

PHP version history (2 changes)v0.1.0PHP ^8.4

v0.3.0PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/9fe997126bcc6a6026a2f6c335ce125055af46178c82faa24d3087b7d5dc0b44?d=identicon)[dniccum](/maintainers/dniccum)

---

Top Contributors

[![dniccum](https://avatars.githubusercontent.com/u/2816415?v=4)](https://github.com/dniccum "dniccum (143 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (4 commits)")[![devin-ai-integration[bot]](https://avatars.githubusercontent.com/in/811515?v=4)](https://github.com/devin-ai-integration[bot] "devin-ai-integration[bot] (2 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (1 commits)")

---

Tags

composerenvironmentlaravelsecretstashvariablelaravelenvironmentvariablesdniccumsecret-stashsecret-stash-cli

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/dniccum-secret-stash-cli/health.svg)

```
[![Health](https://phpackages.com/badges/dniccum-secret-stash-cli/health.svg)](https://phpackages.com/packages/dniccum-secret-stash-cli)
```

###  Alternatives

[laravel/boost

Laravel Boost accelerates AI-assisted development by providing the essential context and structure that AI needs to generate high-quality, Laravel-specific code.

3.4k10.6M272](/packages/laravel-boost)[spatie/laravel-health

Monitor the health of a Laravel application

85810.0M83](/packages/spatie-laravel-health)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[nativephp/mobile

NativePHP for Mobile

82724.0k43](/packages/nativephp-mobile)[laravel/reverb

Laravel Reverb provides a real-time WebSocket communication backend for Laravel applications.

1.5k9.4M48](/packages/laravel-reverb)[laravel-zero/framework

The Laravel Zero Framework.

3371.4M368](/packages/laravel-zero-framework)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
