Pilot pricing in Lagos: servers from ₦10 an hour, Spaces from ₦6,750 a month →
Docs menu

Docs / Reference

CLI

8 minute read

The simplicloud CLI is one Python file with no dependencies. It covers servers, apps, databases, Spaces, DNS and billing; add --json to any command to script it.

1. Install

You need Python 3.9 or newer, which macOS and most Linux distributions already have. Download the CLI into a folder on your PATH:

Terminal
mkdir -p ~/.local/bin
curl -fsSLo ~/.local/bin/simplicloud \
https://console.simplicloud.ai/cli/simplicloud.py
chmod +x ~/.local/bin/simplicloud
simplicloud --version

To update, run the same curl command again. On Windows, use WSL.

2. Sign in

Create an API key in the console, then run auth init and paste it. The key is saved in ~/.config/simplicloud/config.toml, readable only by you.

Terminal
simplicloud auth init
? API key: ••••••••••••
✓ Signed in to korafoods as [email protected] (Owner)
simplicloud auth whoami
In CI, skip auth init and set SIMPLICLOUD_TOKEN and SIMPLICLOUD_ORG as secrets instead. Environment variables win over the config file.

3. Servers and volumes

CommandWhat it does
simplicloud servers listList servers in the current project
simplicloud servers create web-1 --plan s1 --image ubuntu-24.04 --ssh-key laptopCreate a server
simplicloud servers ssh web-1SSH in through the gateway
simplicloud servers resize web-1 --plan s2Move to a bigger plan
simplicloud servers reboot web-1Reboot; also power-off, power-on
simplicloud servers delete web-1Delete the server
simplicloud volumes create data-01 --size 50 --attach web-1Create and attach a volume
simplicloud snapshots create web-1Take a snapshot

4. Apps and databases

CommandWhat it does
simplicloud apps create storefront --repo kora/storefront --plan basicCreate an app from GitHub
simplicloud apps deploy storefrontDeploy the latest commit
simplicloud apps logs storefront --followStream runtime logs
simplicloud apps env set storefront KEY=valueSet an environment variable
simplicloud databases create orders-db --engine postgresql --plan standardCreate a database
simplicloud databases uri orders-dbPrint the connection string
simplicloud databases users add orders-db reportingAdd a database user
simplicloud databases backups orders-dbList backups

5. Spaces, DNS and billing

CommandWhat it does
simplicloud buckets create product-images --acl privateCreate a bucket
simplicloud buckets keys create ci-uploadsCreate an access key pair for S3 tools
simplicloud dns add korafoods.ngAdd a domain
simplicloud dns records add korafoods.ng CNAME www storefront.apps.simplicloud.aiAdd a record
simplicloud billing balanceWallet balance and days left
simplicloud billing invoicesList VAT invoices

6. Scripting

Every command takes --json, --project and --org. Exit codes are 0 on success and non-zero on any error, so scripts can stop early.

Terminal
# names of every stopped server
simplicloud servers list --json | jq -r '.[] | select(.status=="off") | .name'
# create in Staging without changing your default
simplicloud apps create storefront-staging --repo kora/storefront \
--branch develop --plan basic --project staging
Was this page helpful?

Related guides

CLI · Docs · SimpliCloud