Skip to content

Stash CLI v0.2.0

Choose a tag to compare

@bushcoding bushcoding released this 28 Oct 10:29
ff17ca8

Stash CLI v0.2.0

What's new

  • Service tokens for CI/CD — new stash tokens create, list and revoke commands. Export a token as STASH_TOKEN and stash run, stash pull and stash secrets work in GitHub Actions, servers or Docker without logging in or passing --project/--env.
  • Reliable .env handling — pull and push now share one parser that supports export, quotes, inline comments, multi-line values, escapes, CRLF and BOM, so values survive a pull → push round trip unchanged.
  • stash pull adds --format env|json|shell, --file - (print to stdout) and --force.
  • stash push uploads in batches and adds --dry-run (preview new/changed/unchanged keys) and --overwrite.
  • stash run adds --no-override (keep existing environment variables) and --verbose.
  • stash login adds --email, --password-stdin, --otp and --force for 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 pull no longer overwrites an existing file silently — it asks for confirmation, or use --force.
  • stash run exits 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 push exits with an error code if any secret fails to upload.
  • stash secrets set from 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:// (except localhost).

Security

  • Updates are only installed when SHA256SUMS.txt is 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.txt

Full Changelog: v0.1.8...v0.2.0