pnp/cli-microsoft365

New command: `spo page unpublish`

開放

#7,540 建立於 2026年8月13日

 (1 則留言) (0 個反應) (0 位負責人)TypeScript (399 個分叉)auto 404
good first issuenew featurework in progress

倉庫指標

星標
 (1,390 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

Usage

m365 spo page unpublish [options]

Description

Unpublishes a modern page

Options

Option Description
-u, --webUrl <webUrl> URL of the site.
-n, --name <name> Name of the page to target.

Examples

Publish a modern page

m365 spo page unpublish --webUrl https://contoso.sharepoint.com/sites/Marketing --name "Style guide.aspx"

Publish a modern page in a subfolder

m365 spo page unpublish --webUrl https://contoso.sharepoint.com/sites/Marketing --name "/Styles/Guide.aspx"

Default properties

No response

Additional Info

API URL:

POST https://contoso.sharepoint.com/sites/Playground/_api/web/GetFileByServerRelativePath(DecodedUrl='/sites/Playground/SitePages/Home.aspx')/UnPublish

貢獻者指南