下面的 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.
这个示例 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