Space CLI is heavily inspired from kubectl. If you have ever worked with kubectl before you won’t have much difficulty in understanding space-cli commands.
Run the below commands to download the latest space-cli binary for yous OS.
For installing a specific version of space-cli just append the version tag at the end of the url.
For v0.19.8 the linux command will change to:
wget https://storage.googleapis.com/space-cloud/linux/space-cli-v0.19.8.zipBefore executing any operation using space-cli, you need to be authenticated with Space Cloud.
We will use the login command provided by space-cli to do the same.
space-cli loginIt will ask for username & password. By default, the username is admin & password is 1234.
If you are not sure about the login credentials, then checkout the config file provided while setting up Space Cloud.
If you are running space cloud on a remote VM, provide the address using --url flag.
space-cli login --url "https://example.com:8080"To install Space Cloud on a Kubernetes cluster, follow this docs.
For removing Space Cloud from a Kubernetes cluster, use the below command:
space-cli destroySpace cloud config is broken down into resources, each resource configures a specific module in Space Cloud.
To view the exhaustive list of resources that space cloud has, run the below command:
space-cli get --helpTo backup entire configuration with all resources, run the below command:
space-cli --project <project-name> get all "directory-name"This operation applies the backed up configuration files in the above step.
space-cli apply "file-or-folder-name"