| copyright |
|
||
|---|---|---|---|
| lastupdated | 2018-07-12 |
{:codeblock: .codeblock} {:shortdesc: .shortdesc} {:new_window: target="_blank"} {:tip: .tip}
{: #more_options_install}
Besides installers, you can have other options to install the {{site.data.keyword.Bluemix_notm}} CLI:
- Install from shell
- Download binary package and install to a custom directory
{: #shell_install}
Copy and paste the following command to a terminal of your Mac OS and run it:
curl -fsSL https://clis.ng.bluemix.net/install/osx | sh
{: codeblock}
Copy and paste the following command to a terminal of your Linux OS and run it:
curl -fsSL https://clis.ng.bluemix.net/install/linux | sh
{: codeblock}
Copy and paste the following command into a Windows PowerShell{: new_window} terminal console and run it:
iex(New-Object Net.WebClient).DownloadString('https://clis.ng.bluemix.net/install/powershell')
{: codeblock}
When you use installers or a shell script to install the {{site.data.keyword.Bluemix_notm}} CLI, the binaries will go to your system directories. If you want to specify a different directory, use the following steps.
-
Download the binaries.
Use the following links and download the binary package based on your OS.
Platform Downloads checksum macOS tgz sha1sums linux32 tgz sha1sums linux64 tgz sha1sums ppc64le tgz sha1sums win32 zip sha1sums win64 zip sha1sums -
Extract the package to a directory that you specify.
After extracting the package, the content will look like the following:
For Linux and MacOS
IBM_Cloud_CLI ├── LICENSE ├── NOTICE ├── autocomplete │ ├── bash_autocomplete │ └── zsh_autocomplete ├── cfcli │ └── cf ├── ibmcloud └── ibmcloud-analytics{: codeblock}
For Windows
IBM_Cloud_CLI ├── LICENSE ├── NOTICE ├── cfcli │ └── cf.exe ├── ibmcloud-analytics.exe └── ibmcloud.exe{: codeblock}
-
Add to the
PATHenvironment variable and enable shell autocompletion.- Add the
{YOUR_DIRECTORY}/IBM_CLOUD_CLIto thePATHenvironment variable. - For shell autocompletion support (MacOS and Linux only), refer to this guide.
- Add the