Operation Instructions


The CLI is currently supported on Linux, macOS, and Windows systems.

Installation Instructions

JD Cloud CLI is developed based on Python language and JD Cloud Python SDK. Please install Python 2.7.* Version before using the CLI. Please visit the official website to download and install the Python 2.7.* Version.

The JD Cloud Python SDK does not have to be installed manually, and the Python package management tool can automatically download and install the corresponding version of the dependency package. If you have installed the JD Cloud Python SDK, which cannot work properly because the CLI version does not correspond to it, please refer to the version correspondence table in the “CLI Use Instructions”, install the corresponding version, or delete the old Python SDK and reinstall the CLI.

Python 2.7 Installation

Download and install:

Operating System Package Management Tool Installation


yum install python


apt-get install python2.7


brew install python@2

Installation of Pip

For installation, refer to:

The specific command is

curl -o

To install the pip using the Linux distribution package management tools, refer to the installation method:

CLI Installation

Linux & macOS Installation

  • pip Installation (Recommended)

    pip install jdcloud_cli

  • Source Code Installation

Download Address:

After unzipping, it is performed in the project directory:

python install
  • Open Bash auto-completion

The CLI's auto-completion feature can be started by executing the following command.

echo 'eval "$(register-python-argcomplete jdc)"' >> .bashrc
echo 'export COLUMNS=100' >> .bashrc
source ~/.bashrc

The AutoComplete feature can greatly improve the efficiency of CLI and is recommended for installation. Once being configured, the prompt for the corresponding command shall pop up while entering the tab key twice. The effect is shown below.

Bash-3.2$ jdc configure [tab][tab]
--help    --version   -v       delete        show-current
--output  -h          add      show-all      use

Windows Installation

JD Cloud CLI relys on Git 2.9. 0 and above version for running on Windows. It is recommended to use the latest version. The download address is

Note: Select the Use MinTTY (the default terminal of MSYS2) for the analog terminal option in installation.

  • pip Installation

    pip install jdcloud_cli

  • Source Code Installation (not dependent on pip)

    python install

  • Open Bash auto-completion

After installation, perform the following scripts in the git bash:

curl > ~/jdc.rc
echo 'source ~/jdc.rc' >> ~/.bashrc
echo 'export PYTHONIOENCODING="UTF-8"' >> ~/.bashrc
source ~/.bashrc

Remove CLI

pip uninstall jdcloud_cli

Upgrade CLI

Use the following command to upgrade to the latest version.

pip install --upgrade jdcloud_cli
Update Time:2019-02-20 20:36:38