anjuna-gcp-cli disk upload

anjuna-gcp-cli disk upload [OPTIONS...]

Compresses and uploads a disk image to GCP.

This command uploads a local raw disk image to the user’s default project or to one specified on the command line. It is added to GCP in the default gcloud zone. The default project can be set through the gcloud CLI.

You must be logged in to a valid GCP account before using this command. Use the gcloud auth list command to confirm that you are logged into GCP, or use gcloud init to initialize your gcloud session.

Options

Usage

anjuna-gcp-cli disk upload [OPTIONS...]

--disk

The disk image file to upload (default: disk.raw)

--bucket

Bucket name for the Google storage (default: anjuna-sev)

--image

Image name for the resource created on Google storage (default: anjuna-sevtest)

Global options

The following options are available for all anjuna-gcp-cli subcommands.

Global options

-h, --help

Prints the help information for the command

--debug

Prints debug messaging

-v, --version

Prints the anjuna-gcp-cli version

Exit status

  • 0 on success

  • 1 on error

Example

$ anjuna-gcp-cli disk upload \
  --disk nginx-disk.raw \
  --bucket anjuna-gcp-bucket \
  --image anjuna-gcp-nginx