What You’ll Learn
In this quickstart, you’ll learn how to:- Install the HopX CLI
- Authenticate with your API key
- Create your first sandbox
- Execute code in multiple languages
- Manage files in sandboxes
- Clean up sandboxes
Prerequisites
- HopX API key (get one here if you don’t have it)
- Python 3.12+ installed
- Terminal access
Step 1: Install the CLI
Install the CLI using the quick install script:Step 2: Authenticate
Option 1: Interactive Setup (Recommended)
Run the interactive setup wizard:- Guide you through browser-based OAuth login
- Help you create an API key
- Configure default settings
- Test your connection
Option 2: Manual Authentication
Authenticate manually:Option 3: Environment Variable
Set your API key as an environment variable:Step 3: Create Your First Sandbox
Create a sandbox from a pre-built template:Step 4: Execute Code
Execute Python code in your sandbox:Step 5: Manage Files
Write a file to your sandbox:Step 6: Run Shell Commands
Run shell commands in your sandbox:Step 7: Manage Environment Variables
Set environment variables:Step 8: Clean Up
Kill your sandbox when done:Next Steps
Now that you’ve completed the quickstart, explore more CLI features:- Sandbox Management - Complete sandbox lifecycle management
- Code Execution - Execute code in multiple languages
- File Operations - Advanced file management
- Shell Commands - Run system commands
- Environment Variables - Manage environment configuration
- Templates - List and build custom templates
- Configuration - Configure CLI settings and profiles
Related
- CLI Overview - Learn about CLI features
- CLI Installation - Detailed installation guide
- Python SDK Quickstart - Get started with Python SDK
- JavaScript SDK Quickstart - Get started with JavaScript SDK

