Skip to main content

What is the CLI?

The SimpleCloud CLI is your primary tool for managing your cloud infrastructure. It provides commands for authentication, setup, component management, and server operations.

Installation

Install the CLI using the official install script:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/simplecloudapp/simplecloud-manifest/HEAD/install.sh)"

Command Structure

sc <command> [subcommand] [arguments] [options]

Global Options

OptionDescription
-c, --contextOverride the active context
-h, --helpShow help
-v, --versionShow version number

Authentication

Login

Authenticate with SimpleCloud.
sc login
OptionDescription
--no-browserDon’t open browser automatically
--codeUse a pre-approved code from the dashboard

Logout

Log out from SimpleCloud.
sc logout

Who Am I

Show current user information.
sc whoami

Setup & Installation

Setup

Set up SimpleCloud: configure context, install dependencies, and download serverhost.
sc setup
OptionDescription
-o, --orgOrganization ID or slug (skips interactive selection)
--codeUse a pre-approved code from the dashboard

Install Components

Install components from the component registry.
sc install [components..]

Update Components

Update installed components to latest versions.
sc update [components..]

Upgrade CLI

Upgrade the CLI to the latest version.
sc upgrade

Component Lifecycle

Start

Start SimpleCloud components.
sc start [components..]
OptionDescription
--runnerOverride runner type (screen, docker, native)
--configureConfigure the default runner
--skip-version-checkSkip version check before starting
--updateAuto-update outdated components

Stop

Stop SimpleCloud components.
sc stop [components..]

Restart

Restart SimpleCloud components (stop then start).
sc restart [components..]

Status

Check status of SimpleCloud components.
sc status [components..]

Logs

View logs for a component.
sc logs <component>
OptionDescription
-n, --linesNumber of lines to show (default: 100)

Attach

Attach to a running component console.
sc attach <component>

Context Management

Manage connection contexts. Aliases: contexts, ctx

List Contexts

sc context list

Use Context

Switch to a context.
sc context use <name>

Add Context

Add a new context.
sc context add [name]

Remove Context

Remove a context.
sc context remove <name>

Current Context

Show the current context.
sc context current

Group Management

Manage server groups. Alias: groups

List Groups

sc group list

Create Group

Create a new group with interactive wizard.
sc group create
OptionDescription
-y, --auto-retryAutomatically retry with previous answers

Group Info

Show group information.
sc group info <group>

Start Server in Group

Start a server in the group.
sc group start <group>

Update Group

Update group settings.
sc group update <group>
OptionDescription
--nameNew group name
--typeGroup type (SERVER, PROXY, LOBBY)
--activeSet active status
--max-memoryMaximum memory in MB
--min-memoryMinimum memory in MB
--max-playersMaximum players
--scaling-minMinimum servers for scaling
--scaling-maxMaximum servers for scaling

Delete Group

Delete a group.
sc group delete <group>

Group Plugins

Manage plugins for a group.
# Add plugins to a group
sc group plugin add <group> [query]

# List plugins for a group
sc group plugin list <group>

# Remove a plugin from a group
sc group plugin remove <group> <plugin>

Server Management

Manage running servers. Alias: servers

List Servers

sc server list

Server Info

Show server information.
sc server info <server> [numerical-id]

Stop Server

Stop a server.
sc server stop <server> [numerical-id]

Server Logs

View server logs.
sc server logs <server> [numerical-id]

Blueprint Management

Manage server blueprints. Aliases: blueprints, bp, bps

List Blueprints

sc blueprint list

Blueprint Info

Show blueprint information.
sc blueprint info <blueprint>

Update Blueprint

Update blueprint settings.
sc blueprint update <blueprint>

Delete Blueprint

Delete a blueprint.
sc blueprint delete <blueprint>

Persistent Server Management

Manage persistent servers. Aliases: pserver, pservers

List Persistent Servers

sc persistent-server list

Create Persistent Server

Create a new persistent server with interactive wizard.
sc persistent-server create

Persistent Server Info

Show persistent server information.
sc persistent-server info <server>

Update Persistent Server

Update persistent server settings.
sc persistent-server update <server>

Delete Persistent Server

Delete a persistent server.
sc persistent-server delete <server>

Persistent Server Plugins

Manage plugins for a persistent server.
# Add plugins
sc persistent-server plugin add <server> [query]

# List plugins
sc persistent-server plugin list <server>

# Remove a plugin
sc persistent-server plugin remove <server> <plugin>

Network Management

Manage network configuration. Aliases: networks, net

Register Network

Register a new network.
sc network register

Verify Network

Verify network credentials.
sc network verify

Serverhost Management

Manage server hosts. Aliases: serverhosts, host, hosts

Add Serverhost

Add a new serverhost with interactive wizard.
sc serverhost add

Register Serverhost

Register a new serverhost.
sc serverhost register

Verify Serverhost

Verify a serverhost.
sc serverhost verify <id>

Shell Completion

Generate shell completion scripts.
sc completion

Quick Reference

TaskCommand
Set up SimpleCloudsc setup
Start all componentssc start
Check statussc status
View logssc logs <component>
Create a groupsc group create
List groupssc group list
Start a serversc group start <group>
List serverssc server list
Stop a serversc server stop <name> [id]
Attach to consolesc attach <component>
Switch contextsc context use <name>