az devops project
Note
此参考是 Azure CLI(版本 2.30.0 或更高版本)的 azure-devops 扩展的一部分。 该扩展会在首次运行 az devops project 命令时自动安装。 了解更多关于扩展的信息。
管理团队项目。
命令
名称 | 说明 | 类型 | Status |
---|---|---|---|
az devops project create |
创建团队项目。 |
Extension | GA |
az devops project delete |
删除团队项目。 |
Extension | GA |
az devops project list |
列出团队项目。 |
Extension | GA |
az devops project show |
显示团队项目。 |
Extension | GA |
az devops project create
创建团队项目。
az devops project create --name
[--description]
[--detect {false, true}]
[--open]
[--org --organization]
[--process]
[--source-control {git, tfvc}]
[--visibility {private, public}]
必需参数
新项目的名称。
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
新项目的说明。
自动检测组织。
属性 | 值 |
---|---|
接受的值: | false, true |
在默认 Web 浏览器中打开团队项目。
属性 | 值 |
---|---|
默认值: | False |
Azure DevOps 组织 URL。 可以使用 az devops configure -d organization=ORG_URL 配置默认组织。 如果未配置为默认或通过 git 配置选取,则为必需。示例:https://dev.azure.com/MyOrganizationName/
。
要使用的过程。 如果未指定,则为默认值。
创建的初始代码存储库的源代码管理类型。
属性 | 值 |
---|---|
默认值: | git |
接受的值: | git, tfvc |
项目可见性。
属性 | 值 |
---|---|
默认值: | private |
接受的值: | private, public |
全局参数
提高日志记录详细程度以显示所有调试日志。
属性 | 值 |
---|---|
默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
属性 | 值 |
---|---|
默认值: | False |
输出格式。
属性 | 值 |
---|---|
默认值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID
配置默认订阅。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
属性 | 值 |
---|---|
默认值: | False |
az devops project delete
删除团队项目。
az devops project delete --id
[--detect {false, true}]
[--org --organization]
[--yes]
必需参数
要删除的项目的 ID。
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
自动检测组织。
属性 | 值 |
---|---|
接受的值: | false, true |
Azure DevOps 组织 URL。 可以使用 az devops configure -d organization=ORG_URL 配置默认组织。 如果未配置为默认或通过 git 配置选取,则为必需。示例:https://dev.azure.com/MyOrganizationName/
。
不要提示确认。
属性 | 值 |
---|---|
默认值: | False |
全局参数
提高日志记录详细程度以显示所有调试日志。
属性 | 值 |
---|---|
默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
属性 | 值 |
---|---|
默认值: | False |
输出格式。
属性 | 值 |
---|---|
默认值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID
配置默认订阅。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
属性 | 值 |
---|---|
默认值: | False |
az devops project list
列出团队项目。
az devops project list [--continuation-token]
[--detect {false, true}]
[--get-default-team-image-url {false, true}]
[--org --organization]
[--skip]
[--state-filter {all, createPending, deleted, deleting, new, unchanged, wellFormed}]
[--top]
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
继续标记。 如果存在更多结果,则可以从上一次运行此命令中重试。
自动检测组织。
属性 | 值 |
---|---|
接受的值: | false, true |
是否获取默认团队图像 URL。
属性 | 值 |
---|---|
接受的值: | false, true |
Azure DevOps 组织 URL。 可以使用 az devops configure -d organization=ORG_URL 配置默认组织。 如果未配置为默认或通过 git 配置选取,则为必需。示例:https://dev.azure.com/MyOrganizationName/
。
要跳过的结果数。
状态筛选器。
属性 | 值 |
---|---|
默认值: | all |
接受的值: | all, createPending, deleted, deleting, new, unchanged, wellFormed |
要列出的最大结果数。
全局参数
提高日志记录详细程度以显示所有调试日志。
属性 | 值 |
---|---|
默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
属性 | 值 |
---|---|
默认值: | False |
输出格式。
属性 | 值 |
---|---|
默认值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID
配置默认订阅。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
属性 | 值 |
---|---|
默认值: | False |
az devops project show
显示团队项目。
az devops project show --project
[--detect {false, true}]
[--open]
[--org --organization]
必需参数
项目的名称或 ID。 可以使用 az devops configure -d project=NAME_OR_ID 配置默认项目。 如果未配置为默认或通过 git 配置进行选取,则为必需。
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
自动检测组织。
属性 | 值 |
---|---|
接受的值: | false, true |
在默认 Web 浏览器中打开团队项目。
属性 | 值 |
---|---|
默认值: | False |
Azure DevOps 组织 URL。 可以使用 az devops configure -d organization=ORG_URL 配置默认组织。 如果未配置为默认或通过 git 配置选取,则为必需。示例:https://dev.azure.com/MyOrganizationName/
。
全局参数
提高日志记录详细程度以显示所有调试日志。
属性 | 值 |
---|---|
默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
属性 | 值 |
---|---|
默认值: | False |
输出格式。
属性 | 值 |
---|---|
默认值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID
配置默认订阅。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
属性 | 值 |
---|---|
默认值: | False |