Add noCrawl and enableMinimalDownload options to spo web set
Maintainers usually reply within 1 day
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
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
Starts the project's dev container in your browser, under your own GitHub account.
- Ships a Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from pnp/cli-microsoft365
-
Bug report: isValidISODateDashOnly accepts text before or after the date-timePossibly taken @bardrop claimed this today. Open
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
pnp/cli-microsoft365#7713 ·
Maintainers usually reply within 1 day
-
question
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
pnp/cli-microsoft365#7695 · 5 comments ·
Maintainers usually reply within 1 day
-
Minimal permissions for 'util miscellaneous' commandsPossibly taken @Labu1 claimed this 2 days ago. Opendocs work in progress
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
pnp/cli-microsoft365#7535 · 1 comment · 1 assignee ·
Maintainers usually reply within 1 day
-
Minimal permissions for 'teams user app' commandsPossibly taken @SmitaNachan claimed this 48 days ago. Opendocs work in progress
Difficulty 2/5 1-2 days Newbie friendliness 78/100
pnp/cli-microsoft365#7529 · 1 comment · 1 assignee ·
Maintainers usually reply within 1 day
-
docs help wanted
Difficulty 2/5 1-2 days Newbie friendliness 78/100
pnp/cli-microsoft365#7507 ·
Maintainers usually reply within 1 day
All issues in pnp/cli-microsoft365
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Maintainers usually reply within 1 day
-
rel: fix
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Deltares/fews-web-oc#2400 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
ardia-browser/ardia#4426 ·
Maintainers usually reply within 1 day
-
Diagram: Journey Type: Bug / Error
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
mermaid-js/mermaid-v13#1293 ·
Maintainers usually reply within 1 day
-
beginner bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
hiero-ledger/hiero-sdk-js#4824 ·
Maintainers usually reply within 1 day