LinuxCommandLibrary

ibmcloud

Manage IBM Cloud resources

TLDR

Update ibmcloud to the latest version

$ ibmcloud update
copy

List all available IBM Cloud regions
$ ibmcloud regions
copy

Display help
$ ibmcloud help
copy

Display help for a subcommand
$ ibmcloud help [subcommand]
copy

Display version
$ ibmcloud version
copy

SYNOPSIS

ibmcloud [OPTIONS] <command> [<args>]

PARAMETERS

-c, --color[=COLOR]
    Force colored output: auto, always, never (default auto)

-h, --help
    Show help for command

-l, --locale LOCALE
    Set system locale (default en)

-q, --quiet
    Suppress progress indicators

-v, --verbose
    Enable verbose output

--no-color
    Disable colored output

--version
    Print CLI version

--apikey APIKEY
    Use API key for authentication

--trace
    Enable trace logging

--output FORMAT
    Output format: json, table (default table)

DESCRIPTION

The ibmcloud command provides a powerful CLI for interacting with IBM Cloud services and resources from the Linux terminal. It enables authentication, resource management, service provisioning, application deployment, and infrastructure operations.

Users can log in with ibmcloud login, target specific organizations/spaces via ibmcloud target, list resources with ibmcloud resource list, and manage services using subcommands like ibmcloud service offerings. It supports plugins for tools like Kubernetes (ibmcloud ks) and serverless functions.

Designed for developers and admins, it integrates with CI/CD pipelines for automation. Output is colorized by default, with verbose logging available. Installation requires Node.js/npm or direct binaries from IBM, followed by initialization with ibmcloud config --check.

Key benefits include API endpoint targeting (ibmcloud api), region switching (ibmcloud region), and IAM integration for secure access. It's essential for hybrid/multi-cloud workflows on IBM Cloud.

CAVEATS

Requires prior installation and IBM Cloud account. Some commands need plugins (e.g., bx plugin install container-service). Rate limits apply to API calls. Not a standard distro package.

INSTALLATION

Run curl -sL https://ibm.biz/idt-installer | bash or npm i -g @ibm-cloud/cli, then ibmcloud --version.

QUICK START

ibmcloud login --sso or ibmcloud login --apikey, followed by ibmcloud target --cf.

PLUGINS

Extend with ibmcloud plugin install service-name for Kubernetes, VPC, etc.

HISTORY

Evolved from Bluemix CLI (2014); rebranded to IBM Cloud CLI in 2017 with Cloud Foundry integration. Major updates align with IBM Cloud platform shifts to IAM (2019) and open-source contributions via GitHub.

SEE ALSO

cf(1), aws(1), gcloud(1), az(1)

Copied to clipboard