Civo CLI Commands
Civo CLI: Cloud Instance Management
The Civo CLI is a powerful command-line interface designed to streamline the management of your cloud infrastructure on Civo. This tool allows developers and system administrators to interact with Civo services directly from their terminal, enabling efficient control over virtual machines, storage, and networking resources.
Managing Civo Instances
Effectively manage your cloud instances with a comprehensive set of Civo CLI commands. These commands cover the entire lifecycle of an instance, from creation to deletion, ensuring you have granular control over your compute resources.
Command | Description |
---|---|
civo instance ls |
List all your active instances. |
civo instance show <instance> |
Display detailed information about a specific instance. |
civo instance create <hostname> |
Create a new virtual machine instance with a specified hostname. |
civo instance firewall <hostname> <firewall> |
Assign a firewall rule to an instance. |
civo instance password |
Retrieve the default password for your instances. |
civo instance public-ip |
Configure whether an instance should have a public IP address. |
civo instance reboot <hostname> |
Perform a hard reboot on a specified instance. |
civo instance remove <hostname> |
Delete or remove an instance from your Civo account. |
civo instance size |
View available instance sizes and their specifications. |
civo instance soft-reboot |
Execute a graceful soft reboot on an instance. |
civo instance start |
Start a stopped instance. |
civo instance stop |
Stop a running instance. |
civo instance tag |
Modify or add tags to an instance for organization. |
civo instance update |
Update the configuration of an existing instance. |
civo instance upgrade |
Upgrade an instance to a different size or configuration. |
Instance Creation Flags
Customize your instance creation process using various flags to define its properties and behavior.
Flag | Description |
---|---|
--size , -i |
Specify the size of the instance (e.g., CPU, RAM). |
--diskimage , -t |
Select the disk image to be used for the instance's operating system. |
--public-ip , -p |
Enable or disable the assignment of a public IP address to the instance. |
--firewall , -l |
Apply a pre-configured firewall to the instance upon creation. |
--region |
Choose the geographical region where the instance will be deployed. |
--ssh-key , -k |
Specify an SSH public key to be added for secure access to the instance. |
--wait , -w |
Instruct the CLI to wait until the instance creation process is complete. |
Querying Disk Images and Sizes
Explore the available disk images and instance sizes to make informed decisions when provisioning your cloud resources.
Command | Description |
---|---|
civo diskimage ls |
List all available disk images supported by Civo. |
civo diskimage find <string> |
Search for disk images by name or keyword. |
civo size ls |
List all available instance sizes, including their specifications and pricing. |
For more detailed information on Civo's services and best practices, refer to the official Civo Documentation. You can also find helpful discussions and solutions on Stack Overflow.