CLI Reference
Command-line interface for ServersCamp. Manage VMs, storage, and buckets from your terminal.
Installation
Install scli with a single command:
Bash
curl -fsSL https://raw.githubusercontent.com/serverscamp/scli/main/install.sh | sh
This installs the latest version to ~/.local/bin. Make sure it's in your PATH.
Authentication
Login to your ServersCamp account:
Bash
scli auth login
On local machines, this opens your browser automatically. On remote servers, it displays a link to visit.
Alternatively, use an API key directly:
Bash
scli auth login --api-key sk_live_abc123...
Environment Variables
| Variable | Description |
|---|---|
SCLI_API_KEY | API key for authentication (overrides config file) |
SCLI_NO_COLOR | Disable colored output |
VM Commands
Manage virtual machines.
| Command | Description |
|---|---|
scli vm ls | List all VMs |
scli vm show <id> | Show VM details |
scli vm create | Create a new VM (interactive) |
scli vm delete <id> | Delete a VM |
scli vm connect <id> | SSH into a VM |
scli vm classes | List available VM classes |
scli vm templates | List available OS templates |
Create a VM
The scli vm create command walks you through VM creation interactively:
Terminal
$ scli vm create
Select OS template:
1) Ubuntu 25.04 LTS (Linux)
Select [1-1]: 1
Select VM class (CPU/RAM):
1) burst-xxs - 1 CPU x 20-50%, 512 MB RAM
2) burst-xs - 1 CPU x 20-80%, 1.0 GB RAM
3) burst-s - 1 CPU x 20-100%, 2.0 GB RAM
Select [1-3]: 2
Select storage class:
1) value-storage - 500 IOPS, 50 MB/s
2) standard-storage - 5000 IOPS, 250 MB/s
Select [1-2]: 1
Disk size in GB: (default: 20)
> 20
Creating VM...
VM created successfully!
Name: vm-ac74352b5a278543
Public IPv4: 194.110.174.104
Connect to VM
SSH into your VM using its name or ID:
Bash
scli vm connect vm-ac74352b5a278543
Database Commands
Manage managed database instances.
| Command | Description |
|---|---|
scli db ls | List all databases |
scli db create | Create a new database |
scli db show <id> | Show database details and connection string |
scli db delete <id> | Delete a database |
scli db backups <id> | List backups |
Storage Commands
Manage S3-compatible object storage.
| Command | Description |
|---|---|
scli buckets ls | List all buckets |
scli buckets create <name> | Create a new bucket |
scli buckets credentials <name> | Show S3 access credentials |
scli s3 ls <bucket>/ | List objects in bucket |
scli s3 put <local> <bucket>/<key> | Upload a file |
scli s3 get <bucket>/<key> <local> | Download a file |
scli s3 rm <bucket>/<key> | Delete an object |
SSH Keys
Manage SSH keys for VM access.
| Command | Description |
|---|---|
scli ssh-keys ls | List all SSH keys |
scli ssh-keys create <name> <public_key> | Upload a new SSH key |
scli ssh-keys delete <id> | Delete an SSH key |