Stashbase

Getting started

See how to use Stahsbase CLI

Stahsbase offers a powerful CLI which is handy for local development.

With this CLI you can easily manage your workspace resources from your local machine on your behalf. You can also use our CLI to inject secrets and and run your applications.

Stahsbase CLI is powered by Rust to give you the best developer experience. We also value flexibility so you can easily pipe out the data (like secrets or projects) in multiple formats.

Ready to dive in? Let's get started! 🚀

Installation

Platform support:

  • macOS Apple Silicon
  • Linux x64
  • Windows x64

macOS

You can install Stashbase CLI using Homebrew:

brew tap stashbase/homebrew-stashbase
brew trust stashbase/stashbase
brew install stashbase

Linux

You can install Stashbase CLI using curl:

curl -fsSL https://stashbase.dev/cli/install.sh | bash

Windows

You can install Stashbase CLI using Scoop:

scoop bucket add stashbase https://github.com/stashbase/scoop-stashbase-cli
scoop install stashbase

Shell script

This method of installing Stashbase CLI works with both Linux and macOS.

curl -fsSL https://stashbase.dev/cli/install.sh | bash

Authorization

To authorize your CLI you need to provide API Key. You can generate personal API Key by using the web dashboard navigating to to API Keys -> Personal -> Add new. Store the generated API Key safely beacause you won't be able to view it again.

To authorize your CLI provide your generate API Key to the command below which prompts you to enter the key interactively:

stashbase config set api-key

Usage

To verify that your CLI is working correctly, run the following command in your favorite shel: stashbase If everything works as expected, you should see usage information and all available root commands.

If you need help with any command you can use stashbase <command> --help argument to get more information.

Instead of typing stashbase every time we recommend to create a custom alias like sb:

alias sb="stashbase"

Global options

The CLI supports those global options that can be used with any command.

Prop

Type

On this page