This section will take you step-by-step through Getting started with the IBM Cloud CLI and Developer Tools using the command line option.
Install IBM Cloud CLI π
Download the ibmcloud CLI by running the command appropriate for your operating system:
-
MacOS & Linux:
curl -sL https://ibm.biz/idt-installer | bash -
Windows 10 Pro (Powershell) Run the following as Administrator:
[Net.ServicePointManager]::SecurityProtocol = "Tls12"; iex(New-Object Net.WebClient).DownloadString('https://ibm.biz/idt-win-installer')
- Tip Right-click the Windowsβ’ PowerShell icon, and select Run as administrator.
Verify the Installation π
Try running the help command:
ibmcloud dev helpLogin and Configure the IBM Cloud CLI π
-
Use this command to authenticate the IBM Cloud CLI with your account credentials.
ibmcloud login
-
Enter account credentials for your IBM Cloud account.
Email> josephine.watson@gmail.com Password: ******** Authenticating... OK Targeted account Josephine Watson's Account (87a302ad58884640a45f959d3da6cc77) API endpoint: https://cloud.ibm.com Region: us-south User: josephine.watson@gmail.com Account: Josephine Watson's Account (87a302ad58884640a45f959d3da6cc77) Resource group: No resource group targeted, use 'ibmcloud target -g RESOURCE_GROUP' CF API endpoint: Org: Space:
Note: If you already have created an IBM Cloud account you may be prompted to select the account you wish the IBM Cloud CLI to use:
Select an account (or press enter to skip): Select an account: 1. Josephine Watson's Account (87a302ad58884640a45f959d3da6cc77) Enter a number> 1
-
Configure your Cloud Foundry organization and space the CLI is targeting.
Run the following interactive command:
ibmcloud target --cf
Targeted Cloud Foundry (https://api.ng.bluemix.net) Targeted org josephine.watson@gmail.com Targeted space dev API endpoint: https://cloud.ibm.com Region: us-south User: josephine.watson@gmail.com Account: Josephine Watson's Account (87a302ad58884640a45f959d3da6cc77) Resource group: No resource group targeted, use 'ibmcloud target -g RESOURCE_GROUP' CF API endpoint: https://api.ng.bluemix.net (API version: 2.142.0) Org: josephine.watson@gmail.com Space: dev
Note: If you already have already created an Namespaces, you may ne prompted to select the Namespace you wish to use as the default for the
cloud-functionsplugin.
{% hint style="success" %} π Congratulations, you've successfully registered an IBM Cloud account and logged into the IBM Cloud CLI. π {% endhint %}