שתף באמצעות


az devops project

Note

This reference is part of the azure-devops extension for the Azure CLI (version 2.30.0 or higher). The extension will automatically install the first time you run an az devops project command. Learn more about extensions.

Manage team projects.

Commands

Name Description Type Status
az devops project create

Create a team project.

Extension GA
az devops project delete

Delete team project.

Extension GA
az devops project list

List team projects.

Extension GA
az devops project show

Show team project.

Extension GA

az devops project create

Create a team project.

az devops project create --name
                         [--description]
                         [--detect {false, true}]
                         [--open]
                         [--org]
                         [--process]
                         [--source-control {git, tfvc}]
                         [--visibility {private, public}]

Required Parameters

--name

Name of the new project.

Optional Parameters

--description -d

Description for the new project.

--detect

Automatically detect organization.

Accepted values: false, true
--open

Open the team project in the default web browser.

Default value: False
--org --organization

Azure DevOps organization URL. You can configure the default organization using az devops configure -d organization=ORG_URL. Required if not configured as default or picked up via git config. Example: https://dev.azure.com/MyOrganizationName/.

--process -p

Process to use. Default if not specified.

--source-control -s

Source control type of the initial code repository created.

Accepted values: git, tfvc
Default value: git
--visibility

Project visibility.

Accepted values: private, public
Default value: private
Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

az devops project delete

Delete team project.

az devops project delete --id
                         [--detect {false, true}]
                         [--org]
                         [--yes]

Required Parameters

--id

The id of the project to delete.

Optional Parameters

--detect

Automatically detect organization.

Accepted values: false, true
--org --organization

Azure DevOps organization URL. You can configure the default organization using az devops configure -d organization=ORG_URL. Required if not configured as default or picked up via git config. Example: https://dev.azure.com/MyOrganizationName/.

--yes -y

Do not prompt for confirmation.

Default value: False
Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

az devops project list

List team projects.

az devops project list [--continuation-token]
                       [--detect {false, true}]
                       [--get-default-team-image-url {false, true}]
                       [--org]
                       [--skip]
                       [--state-filter {all, createPending, deleted, deleting, new, unchanged, wellFormed}]
                       [--top]

Optional Parameters

--continuation-token

Continuation token. This can be retrived from previous run of this command if more results are present.

--detect

Automatically detect organization.

Accepted values: false, true
--get-default-team-image-url

Whether to get default team image url or not.

Accepted values: false, true
--org --organization

Azure DevOps organization URL. You can configure the default organization using az devops configure -d organization=ORG_URL. Required if not configured as default or picked up via git config. Example: https://dev.azure.com/MyOrganizationName/.

--skip

Number of results to skip.

--state-filter

State filter.

Accepted values: all, createPending, deleted, deleting, new, unchanged, wellFormed
Default value: all
--top

Maximum number of results to list.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

az devops project show

Show team project.

az devops project show --project
                       [--detect {false, true}]
                       [--open]
                       [--org]

Required Parameters

--project -p

Name or ID of the project. You can configure the default project using az devops configure -d project=NAME_OR_ID. Required if not configured as default or picked up via git config.

Optional Parameters

--detect

Automatically detect organization.

Accepted values: false, true
--open

Open the team project in the default web browser.

Default value: False
--org --organization

Azure DevOps organization URL. You can configure the default organization using az devops configure -d organization=ORG_URL. Required if not configured as default or picked up via git config. Example: https://dev.azure.com/MyOrganizationName/.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.