Skip to main content

spo propertybag list

Gets property bag values

Usage

m365 spo propertybag list [options]

Options

-u, --webUrl <webUrl>

The URL of the site from which the property bag value should be retrieved.

--folder [folder]

Site-relative URL of the folder from which to retrieve property bag value. Case-sensitive.

-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 http://jmespath.org/ for more information and examples.

-o, --output [output]

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

--verbose

Runs command with verbose logging.

--debug

Runs command with debug logging.

Examples

Return property bag values located in the given site

m365 spo propertybag list --webUrl https://contoso.sharepoint.com/sites/test

Return property bag values located in the given site root folder

m365 spo propertybag list --webUrl https://contoso.sharepoint.com/sites/test --folder /

Return property bag values located in the given site document library

m365 spo propertybag list --webUrl https://contoso.sharepoint.com/sites/test --folder '/Shared Documents'

Return property bag values located in folder in the given site document library

m365 spo propertybag list --webUrl https://contoso.sharepoint.com/sites/test --folder '/Shared Documents/MyFolder'

Return property bag values located in the given site list

m365 spo propertybag list --webUrl https://contoso.sharepoint.com/sites/test --folder /Lists/MyList

Response

[
{
"key": "vti_approvallevels",
"value": "Approved Rejected Pending\\ Review"
}
]
CTRL + M