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

VariableDescription
SCLI_API_KEYAPI key for authentication (overrides config file)
SCLI_NO_COLORDisable colored output

VM Commands

Manage virtual machines.

CommandDescription
scli vm lsList all VMs
scli vm show <id>Show VM details
scli vm createCreate a new VM (interactive)
scli vm delete <id>Delete a VM
scli vm connect <id>SSH into a VM
scli vm classesList available VM classes
scli vm templatesList 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.

CommandDescription
scli db lsList all databases
scli db createCreate 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.

CommandDescription
scli buckets lsList 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.

CommandDescription
scli ssh-keys lsList all SSH keys
scli ssh-keys create <name> <public_key>Upload a new SSH key
scli ssh-keys delete <id>Delete an SSH key