Skip to content

New · Sandbox Studio CLI

sbs brings Sandbox Studio to your terminal. Sign in once, grab a sandbox and start deploying with the tools you already use, with every guardrail, budget and approval still in place.

  • macOS, Linux and Windows
  • Free and open source
  • Sandbox Studio 1.3.1 and later
  1. Sign in
  2. Get a sandbox
  3. Assume the role
  4. Deploy
  5. Open the console

Animated demo of the Sandbox Studio CLI: sign in with sbs login, request a lease, assume its role with sbs assume, deploy with the AWS CLI and AWS CDK, and open the AWS console with sbs open.

Why use the CLI

The CLI is for the people who live in a terminal: developers, platform engineers and anyone automating AWS. It gives them a faster way in, while platform teams keep the same control.

From idea to deploying in a minute

Request a sandbox, step into it and start building without leaving your terminal. No portal tabs, no copying keys around.

Works with the tools you already use

A sandbox behaves like any other AWS profile, so the AWS CLI, CDK, Terraform, SAM and the AWS SDKs just work.

Credentials that look after themselves

Short-lived credentials renew in the background while your session is valid, so long deploys and test runs don't fall over halfway.

One command to the console

When you want to see it in the AWS console, sbs open signs you straight into the right account in your browser.

Approvals without the context switch

Approvers can review and approve pending requests from the terminal, or flick through them in a keyboard-driven view.

Ready for scripts and pipelines

Use an API client in CI to spin up a fresh sandbox per branch, wait for it to be ready and deploy, with JSON output for your scripts.

How it works

  1. 1

    Install

    One command with Homebrew or Scoop, or download a single binary for macOS, Linux or Windows.

  2. 2

    Sign in your way

    sbs login opens your usual Sandbox Studio sign-in, with your identity provider and MFA. No keys to manage.

  3. 3

    Get to work

    Request a sandbox, step into it with sbs assume, or open its console. Everything stays governed.

Install

One small, self-contained binary. Install it with your package manager, or download it for your platform from GitHub.

  • Point it at your Sandbox Studio with sbs configure
  • Sign in with sbs login, the same way you sign in to the web app
  • Requires Sandbox Studio 1.3.1 or later

With Homebrew

$ brew install sandboxstudiosoftware/tap/sbs

Quick start

Three commands to your first sandbox
# Point the CLI at your Sandbox Studio and sign in
$ sbs configure --url https://sandbox.example.com
$ sbs login

# Pick one of your sandboxes and get a shell with its AWS credentials
$ sbs assume

# Or sign in to its AWS console in your browser
$ sbs open

What you can do

Get into a sandbox, manage your leases and look after approvals with a few short commands.

Get into your sandbox

  • sbs assume

    A shell, or a single command, with your sandbox's AWS credentials.

  • sbs open

    Sign in to your sandbox's AWS console in your browser.

  • sbs creds

    Use a sandbox as a regular profile in ~/.aws/config.

Manage your leases

  • sbs lease request

    Request a sandbox from any template you can use, and wait until it's ready.

  • sbs lease browse

    A full-screen, keyboard-driven view of all your leases.

  • sbs lease share

    Share a sandbox with teammates, suspend, resume or end it.

Approve and oversee

  • sbs approval list

    See the requests waiting on you.

  • sbs approval approve

    Approve or deny one request or many at once.

  • sbs lease update

    Managers can adjust a lease's budget and expiry.

Plays nicely with

  • AWS CLI
  • AWS CDK
  • Terraform
  • AWS SAM
  • Pulumi
  • AWS SDKs
  • GitHub Actions
  • GitLab CI

Governed by design

The CLI is another door into the same governed platform. Nothing about your guardrails changes.

  • Every sandbox keeps its template's guardrails, budget and expiry, whichever way it was requested.
  • People sign in with the identity provider and MFA your organisation already uses.
  • Credentials are temporary, limited to the sandbox they belong to, and kept in the operating system's secure keychain.
  • Requests, approvals and access show up in the activity feed like everything else.
  • Elevated admin access is limited to managers and admins, and only for an hour at a time.

~ ❯ sbs whoami

URL: https://sandbox.northwind.io

Subject: priya@northwind.io

Role: USER

Auth: Browser Login

Expires: in 11h42m

~ ❯ sbs approval approve 3c9d7f10 b81e04d2

✓ 3c9d7f10: approved

✓ b81e04d2: approved

FAQ

What does the Sandbox Studio CLI cost?

Nothing extra. The CLI is free and open source under the Apache 2.0 licence, and works with your existing Sandbox Studio subscription.

Which version of Sandbox Studio do I need?

Sandbox Studio 1.3.1 or later. Signing in through your browser needs a deployment that uses the Sandbox Studio sign-in introduced in 1.3.

Which operating systems are supported?

macOS, Linux and Windows. Install it with Homebrew or Scoop, or download a single binary from the GitHub releases page.

Does it work with Terraform, CDK and the AWS SDKs?

Yes. A sandbox can be set up as a regular AWS profile, so anything that reads your AWS configuration picks up its credentials and keeps them fresh.

Can I use it in CI/CD pipelines?

Yes. Create an API client in Sandbox Studio and give the CLI its client ID and secret. Pipelines can then request a sandbox, wait until it's ready, deploy into it and hand it back.

Why not just use aws sso login?

You reach a sandbox through access that Sandbox Studio sets up for each lease, not through an IAM Identity Center assignment. The CLI gets you the right credentials for the right sandbox in one step.

Does the CLI bypass approvals or budgets?

No. The CLI talks to your Sandbox Studio, so the same templates, approvals, budgets and clean-up rules apply as in the web app.

Is it a replacement for the web app?

No, it's another way in. People can switch between the web app, the CLI, the API and AI assistants, and everything stays in sync.

Bring your sandboxes to the command line.

Install the Sandbox Studio CLI in a minute and start deploying into governed AWS sandboxes from your terminal.