SimpleCloud CLI

The SimpleCloud CLI provides a powerful command-line interface to manage all aspects of your cloud system. From creating groups to managing servers, the CLI offers comprehensive control over your SimpleCloud installation.

Quick Setup

    /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/theSimpleCloud/simplecloud-manifest/HEAD/install.sh)"
    && sc setup

Why a Modern CLI?

SimpleCloud v3 marks a significant shift from the traditional Manager Console to a modern CLI approach. This change brings several key advantages:

  • Remote Management: The CLI can be installed and run from anywhere, allowing you to manage your cloud system from your local machine while the cloud runs on remote servers.
  • Interactive Experience: The CLI provides an interactive experience that guides you through complex operations:
    • Step-by-step group creation wizards
    • Smart autocompletion for commands and parameters
    • Real-time validation of inputs
  • Automation Capabilities: Command line interfaces excel at automation:
    • Easy integration with scripts and tools
    • Support for continuous integration workflows
    • Batch operations for repetitive tasks

Command Structure

The SimpleCloud CLI has been updated with new commands and structures to enhance functionality and usability.

Connect Command

The connect command connects to the controller via a specified connection or creates a new one.

simplecloud connect [flags]

Connection Command

The connection command shows the current connection.

simplecloud connection

Create Command

The create command is used to create new resources in your cloud system.

Create Group

Create a new server group with specified configuration.

simplecloud create group [flags]

Flags

  • --configurator string: Server configurator
  • --max-memory string: Maximum memory allocation for each server
  • --max-online string: Maximum number of servers that can be online
  • --max-players string: Maximum players per server
  • --min-memory string: Minimum memory allocation for each server
  • --min-online string: Minimum number of servers that must be online
  • --name string: Group name
  • --port string: Starting port number for servers
  • --server-url string: Server software download URL (optional)
  • --software string: Server software type
  • --template string: Template type (dynamic or static)
  • --type string: Server type (PROXY or SERVER)
  • --minecraft-version string: Minecraft version
  • --software-version string: Server Software version

When all flags are set (except --server-url), the interactive setup wizard will be skipped. This is particularly useful for automated group creation or when you want to bypass the step-by-step configuration process. The server url will be automatically set to the default url for the selected software and software version.

Delete Command

The delete command is used to remove existing resources from your cloud system.

Delete Group

Delete a group.

simplecloud delete group [flags]

Flags

  • --confirm: Don't ask for confirmation.
  • -h, --help: Help for delete.

Edit Command

The edit command modifies existing resources in your cloud system.

Edit Group

Modify an existing group's configuration.

simplecloud edit group [name] [flags]

Edit Server

Modify running server configurations.

simplecloud edit server [id] [flags]

Info Command

The info command retrieves specific information about groups, servers, or connections.

Info Connections

List all configured cloud connections.

simplecloud info connections

Info Groups

Display all configured server groups and their basic information.

simplecloud info groups

Info Servers

Show all running and stopped servers in the cloud system.

simplecloud info servers

Setup Command

The setup command runs the setup wizard and installs a fresh cloud bundle.

simplecloud setup

Start Command

The start command initiates cloud components and servers.

Start Cloud

Start all cloud components.

simplecloud start cloud

Start Server

Start a specific server instance.

simplecloud start server <name>

Status Command

The status command shows the status of all components of the cloud, e.g., controller and droplets.

simplecloud status

Stop Command

The stop command gracefully stops cloud components and servers.

Stop Cloud

Stop every necessary component of the cloud.

simplecloud stop cloud

Stop Server

Stop a server of a group.

simplecloud stop server <name>

Flags

  • -C, --confirm: Don't ask for confirmation.
  • -h, --help: Help for stop.

Upgrade Command

The upgrade command upgrades components of the cloud.

Upgrade CLI

Upgrade the CLI.

simplecloud upgrade cli

Version Command

The version command prints the version number of the CLI.

simplecloud version

Global Flags

These flags are available for all commands:

  • -c, --connection string: Specify the connection name for the current session.
  • -h, --help: Show help information.

What's next?

Here are a few links that might be helpful as you continue to explore SimpleCloud:

Was this page helpful?