az devops wiki 页面的相对路径显示 --path 参数从哪里开始?

问题描述 投票:0回答:1

下面的 URL 中 wiki 页面路径的相对路径从哪里开始?

https://dev.azure.com/Sample-Org/Sample-Project/_wiki/wikis/Sample-Project_wiki/666/Sample-Page

我在

--path
参数中传递的每个组合总是会导致错误:

  • Wiki page ‘/Sample-Project_wiki/666/Sample-Page’ could not be found. Ensure that the path of the page is correct and the page exists.
  • Wiki page ‘/666/Sample-Page’ could not be found. Ensure that the path of the page is correct and the page exists.
  • Wiki page ‘/Sample-Page’ could not be found. Ensure that the path of the page is correct and the page exists.
azure-devops azure-cli azure-devops-rest-api
1个回答
0
投票

这个示例 Powershell 脚本对我有用:

$project="MY-PROJECT"
$organization="https://dev.azure.com/MY-ORGANIZATION"
$path="Sample-Project_wiki/666/Sample-Page"
$wiki="$project.wiki"

az devops wiki page show --wiki $wiki --path $path --project $project --organization $organization
© www.soinside.com 2019 - 2024. All rights reserved.