Skip to content

Azure/azure-cli

Repository files navigation

Microsoft Azure Command-Line Tools

This is the Microsoft Azure CLI.

This package has [not] been tested [much] with Python 2.7, 3.4 and 3.5.

Installation

cURL Installation

To install via cURL on Linux, Unix and OS X, type:

curl http://azure-cli-nightly.westus.cloudapp.azure.com/install | bash

If you chose to enable tab completion, type exec -l $SHELL to restart your shell.

Note: This will install the latest nightly builds.

Errors on install with cffi or cryptography:

If you get errors on install on OS X, upgrade pip by typing:

pip install --upgrade --force-reinstall pip

If you get errors on install on Debian or Ubuntu such as the examples below, install libssl-dev and libffi-dev by typing:

sudo apt-get update
sudo apt-get install -y libssl-dev libffi-dev

Also install Python Dev for your version of Python.

Python 2:

sudo apt-get install -y python-dev

Python 3:

sudo apt-get install -y python3-dev

Ubuntu 15 may require build-essential also:

sudo apt-get install -y build-essential

Example Errors

Downloading cffi-1.5.2.tar.gz (388kB)
  100% |################################| 389kB 3.9MB/s
  Complete output from command python setup.py egg_info:

      No working compiler found, or bogus compiler options
      passed to the compiler from Python's distutils module.
      See the error messages above.
      (If they are about -mno-fused-madd and you are on OS/X 10.8,
      see http://stackoverflow.com/questions/22313407/ .)

  ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-77i2fido/cffi/
#include <openssl/e_os2.h>
                         ^
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

Failed building wheel for cryptography

See Stack Overflow question - Failed to install Python Cryptography package with PIP and setup.py

Download Package

To install via the Python Package Index (PyPI), type:

pip install azure-cli

Download Source Code

To get the source code of the SDK via git type:

git clone https://github.com/Azure/azure-cli.git

Usage

Need Help?

Be sure to check out the Microsoft Azure Developer Forums on Stack Overflow if you have trouble with the provided code.

Contribute Code or Provide Feedback

If you would like to become an active contributor to this project please follow the instructions provided in Microsoft Azure Projects Contribution Guidelines.

If you encounter any bugs with the tool please file an issue in the Issues section of the project.

Learn More

Microsoft Azure Python Developer Center