Skip to main content
Join the official Python Developers Survey 2018 and win valuable prizes: Start the survey!

Universal Command Line Environment for alicloud

Project description

#AliCloud Command Line Interface

The AliCloud Command Line Interface is a unified tool to manage your AliCloud services. With just one tool to download and configure, you can control multiple AliCloud services from the command line and automate them through scripts.


If you got any problems, please send mail to us:

aliyun-developers-efficiency@list.alibaba-inc.com

###Prerequisites:

* Windows, Linux, OS X, or Unix
* Python 2 version 2.6.X or version 2.7.x not support python 3.x
* Pip

###Install the Alicloud CLI using pip:

$ sudo pip install alicloudcli

To upgrade an existing Alicloud CLI installation, use the --upgrade option::

$ sudo pip install --upgrade alicloudcli
For windows system, you please dont use sudo.


###Command Completion:
On Linux and Mac OS systems, the AliCloud CLI includes a command-completion feature that can enable you to use the TAB key to complete a partially typed command. This feature needs you configure it manually.

Configuring command completion requires two pieces of information: the name of the shell you are using and the location of the alicloud_completer script.

####bash:

$ complete -C '/usr/local/bin/alicloud_completer' alicloud

####zsh:

% source /usr/local/bin/alicloud_zsh_complete.sh

###Configure the AliCloud CLI:

Run alicloud configure at the command line to set up your credentials and settings.

$ alicloud configure
Alicloud Access Key ID [****************wQ7v]:
Alicloud Access Key Secret [****************fxGu]:
Default Region Id [cn-hangzhou]:
Default output format [json]:

After configure you can use the tool now:

$ alicloud Ecs DescribeInstances
$ alicloud Ecs StartInstance --InstanceId your_instance_id
$ alicloud Rds DescribeDBInstances

###Install the SDK using pip
AliCloud CLI needs SDK to work , you can install SDK using pip like follow:

$sudo pip install aliyun-python-sdk-ecs
$sudo pip install aliyun-python-sdk-rds
$sudo pip install aliyun-python-sdk-slb

More detail you can access our official website:

http://intl.alicloud.com

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
alicloudcli-1.0.1.tar.gz (71.3 kB) Copy SHA256 hash SHA256 Source None Nov 23, 2015

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page