pnp/cli-microsoft365

New command: `spo page unpublish`

オープン

#7,540 opened on 2026/08/13

 (1 件のコメント) (0 件のリアクション) (0 人の担当者)TypeScript (399 件のフォーク)auto 404
good first issuenew featurework in progress

Repository metrics

Stars
 (1,390 個のスター)
PR merge metrics
 (PR metrics pending)

説明

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

コントリビューターガイド