Add noCrawl and enableMinimalDownload options to spo web set

Open Beginner friendly
#7,710 2 comments 1 reaction 1 assignee View on GitHub

Maintainers usually reply within 1 day

@TariQMah is already working on this.

Since Nov 26, 2026.

  • #7711 by @TariQMah — open

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
74/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
typescript
Domain
cli

Research direction

Start from the existing m365 spo web set command and its options, then its command tests, to see how current boolean options are declared and sent to the SharePoint web update. Add noCrawl and enableMinimalDownload the same way, sending only the options that were provided. Done when each option updates its web property independently, omitted options leave it unchanged, the docs cover both, and command tests check the values set.

Written by the indexing model from the issue text.

Description

enhancement good first issue work in progress

Description

Extend m365 spo web set with options to configure the SharePoint web properties NoCrawl and EnableMinimalDownload.

Proposed options

Option Description
--noCrawl [noCrawl] Set whether search engines should crawl and index the web.
--enableMinimalDownload [enableMinimalDownload] Enable or disable Minimal Download Strategy for the web.

Both options should accept the CLI's standard boolean values and update the corresponding web properties.

Examples

Prevent search engines from crawling the web:

m365 spo web set --url https://contoso.sharepoint.com/sites/team-a --noCrawl true

Enable Minimal Download Strategy:

m365 spo web set --url https://contoso.sharepoint.com/sites/team-a --enableMinimalDownload true

Expected behavior

  • Either option can be specified independently.
  • When provided, update the matching SharePoint web property; when omitted, leave the property unchanged.
  • Document both options and add command tests for setting their values.
Dominant language
TypeScript
Stars
1.5k
Forks
413
Avg merge
4d 17h
Merged PRs (30d)
19

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from pnp/cli-microsoft365

All issues in pnp/cli-microsoft365

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.