Skip to main content
The Moru CLI provides command-line access to sandbox and template management.

Installation

No Node.js required. Works on Linux and macOS with automatic PATH configuration.
curl -fsSL https://raw.githubusercontent.com/moru-ai/moru/main/install.sh | bash
After installation, verify with moru --version.

First-Time Setup

After installation, log in to connect your Moru account:
moru auth login
This opens a browser window for authentication. After logging in, your credentials are saved locally.

Configuration

The CLI stores configuration in ~/.moru/config.json:
{
  "email": "you@example.com",
  "accessToken": "...",
  "teamName": "My Team",
  "teamId": "team_...",
  "teamApiKey": "moru_..."
}

Environment Variables

Override configuration with environment variables:
VariableDescription
MORU_API_KEYAPI key for SDK operations
MORU_ACCESS_TOKENAccess token (from login)
MORU_DOMAINAPI domain (default: moru.io)
# Use a specific API key
export MORU_API_KEY=moru_abc123...

# Run commands
moru sandbox list

Command Structure

The CLI is organized into command groups:
moru
├── auth          # Authentication commands
│   ├── login     # Log in to Moru
│   ├── logout    # Log out
│   ├── info      # Show current user
│   └── configure # Configure settings
├── sandbox (sbx) # Sandbox commands
│   ├── create    # Create sandbox
│   ├── connect   # Connect to sandbox
│   ├── list      # List sandboxes
│   ├── kill      # Kill sandbox
│   ├── logs      # View logs
│   └── metrics   # View metrics
└── template (tpl)# Template commands
    ├── init      # Initialize template
    ├── create    # Build template
    ├── list      # List templates
    ├── delete    # Delete template
    ├── publish   # Make public
    └── unpublish # Make private

Aliases

Common commands have short aliases:
Full CommandAlias
moru sandboxmoru sbx
moru sandbox createmoru sbx cr
moru sandbox connectmoru sbx cn
moru sandbox listmoru sbx ls
moru sandbox killmoru sbx kl
moru sandbox logsmoru sbx lg
moru sandbox metricsmoru sbx mt
moru templatemoru tpl
moru template createmoru tpl ct
moru template listmoru tpl ls
moru template deletemoru tpl dl

Help

Get help for any command:
moru --help
moru sandbox --help
moru sandbox create --help

Next Steps