Contribute to Azure CLI

What is Azure CLI?

Azure CLI is a command-line tool to create and manage resources. You interact with Azure by running commands in a terminal or writing scripts to automate tasks. Azure CLI interacts with the Azure Resource Manager (ARM) service, which is the management layer to interact with resources in your account.

Prerequisites

Fork and clone the repositories you wish to develop for:

1
2
$ git clone https://github.com/necusjz/azure-cli.git
$ git clone https://github.com/necusjz/azure-cli-extensions.git

Add or change the upstream:

1
2
$ git remote add upstream https://github.com/Azure/azure-cli.git
$ git remote set-url upstream https://github.com/Azure/azure-cli.git

Install and setup azdev:

1
2
$ pip install azdev
$ azdev setup -c -r ./azure-cli-extensions

List what extensions are currently visible to your development environment:

1
2
$ azdev extension list -o table
$ azdev extension add {}

Publish extensions:

1
$ azdev extension publish {} --storage-account {} --storage-container {} --storage-account-key {}