Skip to main content

spo feature enable

Enables feature for the specified site or web


m365 spo feature enable [options]


-u, --webUrl <webUrl>

The URL of the site or web for which to enable the feature.

-i, --id <id>

The ID of the feature to enable.

-s, --scope [scope]

Scope of the Feature to enable. Allowed values: Site, Web. Defaults to Web.


Specifies whether to overwrite an existing feature with the same feature identifier. This parameter is ignored if there are no errors.

-h, --help [help]

Output usage information. Optionally, specify which section of command's help you want to see. Allowed values are options, examples, remarks, response, full. Default is options.

--query [query]

JMESPath query string. See for more information and examples.

-o, --output [output]

Output type. json, text, csv, md, none. Default json.


Runs command with verbose logging.


Runs command with debug logging.


If the specified url doesn't refer to an existing site collection, you will get a "404 FILE NOT FOUND" error.


Enable site feature.

m365 spo feature enable --webUrl --id 915c240e-a6cc-49b8-8b2c-0bff8b553ed3 --scope Site

Enable web feature (with force to overwrite feature with same id).

m365 spo feature enable --webUrl --id 00bfea71-5932-4f9c-ad71-1557e5751100 --scope Web --force


The command won't return a response on success.