Installing and setting up the IBM Cloud CLI

Install and set up the IBM® Cloud command-line interface (CLI).

Procedure

  1. Log in to the primary host of IBM Spectrum Symphony as root.
  2. Install the IBM Cloud CLI. For more information, see Installing from the shell.
  3. Log in to the IBM Cloud using your account credentials:
    ibmcloud login
  4. Add the virtual private cloud (VPC) infrastructure and domain name server (DNS) plug-ins to the CLI:
    ibmcloud plugin install vpc-infrastructure
    ibmcloud plugin install DNS
  5. Set the infrastructure command (is) target to IBM Cloud VPC:
    ibmcloud is target --gen 2
  6. Select the region for your cloud resources to reside and set that region as the target:
    ibmcloud target -r region_name
    To display a list of possible regions, run the ibmcloud is regions command.
    For example, to select the us-south region, run the following command:
    ibmcloud target -r us-south