ScaleBox Docs

Quick Start Guide

Get up and running with the ScaleBox CLI in minutes. This guide covers the essential commands and workflows to help you manage templates and sandboxes effectively.

Get up and running with the ScaleBox CLI in minutes. This guide covers the essential commands and workflows to help you manage templates and sandboxes effectively.

⚡ Prerequisites

Make sure you have a ScaleBox account and API key. You can get your API key from the dashboard.

Table of Contents

Getting Started

Follow these steps to get the ScaleBox CLI set up and ready to use:

Step 1: Install ScaleBox CLI

Download the appropriate binary for your platform and add to PATH.

PlatformArchitectureSizeDownload
Linux x86_64For most Linux servers and desktops15MBDownload
Linux ARM64For Raspberry Pi, AWS Graviton, Apple Silicon Linux14MBDownload
macOS IntelFor Intel-based Mac computers15MBDownload
macOS Apple SiliconFor M1/M2/M3 Mac computers15MBDownload
Windows x86_64For Windows 10/11 systems16MBDownload

Learn more

Step 2: Authenticate with API Key

Login using your ScaleBox API key.

scalebox-cli auth login --api-key sk-your-key --server-url https://api.scalebox.dev

Learn more

Step 3: Explore Available Templates

List public and your private templates.

scalebox-cli template list

Learn more

Step 4: Create Your First Sandbox

Launch a sandbox from a template.

scalebox-cli sandbox create --template tpl-abc123 --name my-workspace

Learn more

Common Workflows

Working with Templates

  1. Browse available templates:
scalebox-cli template list
  1. Get detailed template information:
scalebox-cli template get tpl-xmmk6trfpg6mv3h9u
  1. Update template properties:
scalebox-cli template update tpl-abc123 --description "Updated template description"

Managing Sandboxes

  1. Create a new sandbox:
scalebox-cli sandbox create --template tpl-xmmk6trfpg6mv3h9u --name my-workspace
  1. List your sandboxes:
scalebox-cli sandbox list
  1. Get sandbox connection details:
scalebox-cli sandbox get sbx-abc123def456789

Advanced Operations

  1. Export Docker image for replacement:
docker save my-updated-app:latest -o my-app-v2.0.tar
  1. Update template properties:
scalebox-cli template update tpl-xmmk6trfpg6mv3h9u --description "Updated template description"

Essential Commands Cheat Sheet

Quick reference for the most commonly used commands:

Templates

TaskCommand
List all available templatesscalebox-cli template list
Get template detailsscalebox-cli template get tpl-abc123def456789

Sandboxes

TaskCommand
Create a new sandboxscalebox-cli sandbox create --template tpl-abc123 --name my-project
List your sandboxesscalebox-cli sandbox list
Get sandbox details and connection infoscalebox-cli sandbox get sbx-def456ghi789012

Authentication

TaskCommand
Check authentication statusscalebox-cli auth whoami
View current user infoscalebox-cli auth whoami

Files

TaskCommand
Upload file to sandbox (v1.2.2)scalebox-cli sandbox upload sbx-def456 ./data.json /workspace/data.json
Download files from sandbox (v1.2.2)scalebox-cli sandbox download sbx-def456 /workspace/results /local/results --recursive
List sandbox directory contents (v1.2.2)scalebox-cli sandbox ls sbx-def456 /workspace/project

Next Steps

Now that you're familiar with the basics, explore these resources:

🎉 You're all set!

You now know the essential ScaleBox CLI commands. Need help? Check the command-line help with scalebox-cli --help or scalebox-cli [command] --help for detailed information about any command.

On this page