CLI Overview
The exc
CLI is a powerful command-line interface designed to help you manage cloud resources on Excloud. With this CLI, you can create, configure, and manage virtual machines (VMs), security groups, SSH keys, and much more, directly from your terminal.
Getting Started
To use the exc
CLI, you need to have it installed and configured. If you haven’t installed it yet, refer to the installation instructions in the Getting Started Guide. Once installed, ensure you log in to the CLI with your credentials.
Key Features
The exc
CLI offers a variety of commands and subcommands to manage different cloud resources. Here is an overview of the core features and capabilities:
1. Compute Resources
Create Compute Instance: Easily create new virtual machines with customizable options such as instance type, image, subnet, security groups, etc.
Flags such as
--allocate_public_ipv4
and--project_id
allow further customization during the instance creation process.List Instances: List all your existing virtual machines and view their details.
Example output:
List Available Images: List all available images to use when creating a VM.
Example output:
Start, Stop, Restart, or Terminate Instances: Manage the lifecycle of your VMs using simple commands like
start
,stop
,restart
, andterminate
.
2. SSH Keys
Create or List SSH Keys: Create SSH keys for secure access to your VMs or list the existing keys.
Note: You can use the
--ssh-public-key-path
flag to provide the path to your SSH public key file instead of directly specifying the key.
3. Security Groups
- Manage Security Groups: Create, list, and manage security groups to control access to your VMs.You can also manage security group rules for ingress and egress traffic.
4. Configs Management
- Manage CLI Configurations: Set or list CLI configurations such as the default account and organization.
5. Orgs Management
- Manage User Organizations: List user organizations and view organizational information.
6. Login and Authentication
- Log in to the Service: Before using the CLI, you must log in with your credentials.
Full Command List
Below is a summary of the available commands and their subcommands:
- compute: Manage compute resources (instances, images, SSH keys, etc.).
create
,list
,start
,stop
,restart
,terminate
image list
,instancetype list
,key create
,key list
- config: Manage CLI configurations (
list
,set
). - login: Log in to the Excloud service.
- org: Manage user organizations (
list
). - securitygroup: Manage security groups (
create
,delete
,list
,rule ingress create
,rule egress create
).
For detailed information on each command, including all available flags and their descriptions, use the --help
flag: