Repository navigation
Stash CLI v0.2.0
Stash CLI v0.2.0
What's new
- Service tokens for CI/CD — new
stash tokens create,listandrevokecommands. Export a token asSTASH_TOKENandstash run,stash pullandstash secretswork in GitHub Actions, servers or Docker without logging in or passing--project/--env. - Reliable
.envhandling —pullandpushnow share one parser that supportsexport, quotes, inline comments, multi-line values, escapes, CRLF and BOM, so values survive a pull → push round trip unchanged. stash pulladds--format env|json|shell,--file -(print to stdout) and--force.stash pushuploads in batches and adds--dry-run(preview new/changed/unchanged keys) and--overwrite.stash runadds--no-override(keep existing environment variables) and--verbose.stash loginadds--email,--password-stdin,--otpand--forcefor non-interactive use, and lets you log in again when your session has expired.- Sessions stay active while you use the CLI (7 days of inactivity instead of 7 days fixed).
Behavior changes
stash pullno longer overwrites an existing file silently — it asks for confirmation, or use--force.stash runexits with the command's own exit code and forwards Ctrl+C to it. Status messages are only shown with--verbose(on stderr), so your command's output is no longer mixed with Stash's.stash pushexits with an error code if any secret fails to upload.stash secrets setfrom stdin drops the trailing newline (echo value | stash secrets set KEY).- Update notices are printed to stderr, at most once a day, and are skipped in CI.
- The API URL must use
https://(exceptlocalhost).
Security
- Updates are only installed when
SHA256SUMS.txtis present and the download matches it; downloads are restricted to GitHub, size-limited and self-tested before replacing the current binary. - Safer Windows update: failed replacements are rolled back instead of leaving a broken install.
- Config file is written atomically with restricted permissions.
- Requests that change data are no longer retried automatically, and a temporary network error no longer logs you out.
Installation
Windows: Download stash-cli-setup-windows-v0.2.0.exe and run the installer.
Linux/macOS: Download the binary for your platform, extract it, and move it to a directory in your PATH.
| Platform | File |
|---|---|
| Windows (x64) | stash_v0.2.0_windows_amd64.zip |
| Windows (ARM) | stash_v0.2.0_windows_arm64.zip |
| Linux (x64) | stash_v0.2.0_linux_amd64.zip |
| Linux (ARM) | stash_v0.2.0_linux_arm64.zip |
| macOS (Intel) | stash_v0.2.0_darwin_amd64.zip |
| macOS (Apple Silicon) | stash_v0.2.0_darwin_arm64.zip |
Already installed? Run stash update.
Verify checksums
Download SHA256SUMS.txt and verify your download:
sha256sum -c SHA256SUMS.txtFull Changelog: v0.1.8...v0.2.0