Getting Started
Get up and running with Genbox in under 5 minutes.
Prerequisites
Before you begin, make sure you have:
- Node.js 18+ installed
- A Genbox account (sign up here )
- SSH keys configured on your machine
Installation
Install the Genbox CLI globally using npm:
npm install -g genboxOr using pnpm:
pnpm add -g genboxVerify the installation:
gb --versionAuthentication
Login to your Genbox account:
gb loginThis opens your browser for authentication. Once complete, your credentials are stored securely.
Initialize Your Project
Navigate to your project root and run:
gb initThis interactive wizard will:
- Scan your project structure
- Detect apps, frameworks, and ports
- Generate a
genbox.yamlconfiguration file - Create recommended profiles
Example Output
Scanning project structure...
Found 3 apps:
✓ admin (React, port 3001)
✓ api (NestJS, port 3050)
✓ web (Next.js, port 3000)
Found infrastructure:
✓ mongodb (mongo:7)
✓ redis (redis:7-alpine)
Generated profiles:
• admin-quick: Admin UI → staging backend
• full-stack: All apps + local database
• api-only: Backend services only
Created: genbox.yamlCreate Your First Environment
Create a new Genbox environment:
gb create my-featureOr with a specific profile:
gb create my-feature --profile admin-quickWatch the Setup
Monitor the environment creation:
gb status -wThis shows real-time progress including:
- Server provisioning
- Repository cloning
- Dependency installation
- Service startup
- Health checks
Connect to Your Environment
Once ready, connect via SSH:
gb connectOr view your service URLs:
gb urlsExample output:
Service URLs for 'my-feature':
admin https://admin.my-feature.genbox.dev
api https://api.my-feature.genbox.dev
web https://web.my-feature.genbox.dev
MongoDB: mongodb://my-feature.genbox.dev:27017
Redis: redis://my-feature.genbox.dev:6379Clean Up
When you’re done, destroy the environment:
gb destroy my-featureEnvironments also auto-destroy after 58 minutes of inactivity to save credits.
Next Steps
- Configuration Guide - Learn about genbox.yaml
- Commands Reference - All CLI commands
- Database Sync - Database workflows
- Port Forwarding - Local debugging
Last updated on