Events
Mar 17, 9 PM - Mar 21, 10 AM
Join the meetup series to build scalable AI solutions based on real-world use cases with fellow developers and experts.
Register nowThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Azure DevOps Services
Learn the following CLI commands for managing wikis.
Note
You can't delete project wikis with the CLI.
Category | Requirements |
---|---|
Project access | Member of the project where the wiki's located. If you don't have access, request it from your project administrator. |
Permissions | Member of the Contributors group. |
Access levels | At least Basic access. |
Commands | description |
---|---|
az devops wiki create | Create a wiki. |
az devops wiki delete | Delete a wiki. |
az devops wiki list | List all the wikis in a project or an organization. |
az devops wiki page | Manage wiki pages. |
az devops wiki page create | Add a new page. |
az devops wiki page delete | Delete a page. |
az devops wiki page show | Get the content of a page or open a page. |
az devops wiki page update | Edit a page. |
az devops wiki show | Show the details of a wiki. |
To create a wiki, enter the az devops wiki create
command.
az devops wiki create [--mapped-path]
[--name]
[--project]
[--repository]
[--subscription]
[--type {codewiki, projectwiki}]
codewiki
type] Mapped path of the new wiki, for example, /
to publish from root of repository.az devops configure -d project=NAME_OR_ID
. Required if not configured as default or picked up via git config.codewiki
type] Name or ID of the repository to publish the wiki from.az account set -s NAME_OR_ID
.codewiki
, projectwiki
. Default value: projectwiki
.Create a named project wiki.
az devops wiki create --name myprojectwiki
Create a code wiki from a folder in a code repository.
az devops wiki create --name WIKI_NAME --type codewiki
--repository REPO_NAME --mapped-path PATH_TO_PUBLISH
To delete a wiki, enter the az devops wiki delete
command.
Note
You can only use this command only to delete a code wiki, not to delete a project wiki.
az devops wiki delete
[--wiki]
[--project]
[--subscription]
[--yes]
az devops configure -d project=NAME_OR_ID
. Required if not configured as default or picked up via git config.az account set -s NAME_OR_ID
.Delete a wiki without a prompt for confirmation.
az devops wiki delete --wiki myprojectwiki --yes
To list all the wikis in a project or an organization, enter the az devops wiki list
command.
az devops wiki list
[--project]
[--scope {organization, project}]
[--subscription]
organization
, project
. Default value: project
.az account set -s NAME_OR_ID
.List all wikis for a project.
az devops wiki list
List all wikis in the organization.
az devops wiki list --scope organization
To show details of a wiki, enter the az devops wiki show
command.
az devops wiki show --wiki
[--open]
[--project]
[--subscription]
az account set -s NAME_OR_ID
.Show the wiki named myprojectwiki
and open the wiki page in your web browser.
az devops wiki show --wiki myprojectwiki --open
To add a new wiki page, enter the az devops wiki page create
command.
az devops wiki page create --path
--wiki
[--comment]
[--content]
[--encoding {ascii, utf-16be, utf-16le, utf-8}]
[--file-path]
[--project]
[--subscription]
added a new page using Azure DevOps CLI
.--file-path
is specified.--file-path
parameter.az account set -s NAME_OR_ID
.Create a new page with path my page
in a wiki named myprojectwiki
with inline content.
az devops wiki page create --path 'my page' --wiki myprojectwiki --content "Hello World"
Create a new page with path 'my page' in a wiki named 'myprojectwiki' with content from a file.
az devops wiki page create --path 'my page' --wiki myprojectwiki --file-path a.txt --encoding utf-8
Events
Mar 17, 9 PM - Mar 21, 10 AM
Join the meetup series to build scalable AI solutions based on real-world use cases with fellow developers and experts.
Register nowTraining