Skip to content

Latest commit

 

History

History
109 lines (76 loc) · 3.62 KB

File metadata and controls

109 lines (76 loc) · 3.62 KB
copyright
years
2018
lastupdated 2018-07-12

{:codeblock: .codeblock} {:shortdesc: .shortdesc} {:new_window: target="_blank"} {:tip: .tip}

More options to install the {{site.data.keyword.Bluemix_notm}} CLI

{: #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

Install from shell

{: #shell_install}

MacOS

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}

Linux

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}

Windows PowerShell

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}

Install to a custom directory

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.

  1. 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
  2. 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}

  3. Add to the PATH environment variable and enable shell autocompletion.

    • Add the {YOUR_DIRECTORY}/IBM_CLOUD_CLI to the PATH environment variable.
    • For shell autocompletion support (MacOS and Linux only), refer to this guide.