spo propertybag get
Gets the value of the specified property from the property bag
Usage
m365 spo propertybag get [options]
Options
-u, --webUrl <webUrl>
The URL of the site from which the property bag value should be retrieved.
-k, --key <key>
Key of the property for which the value should be retrieved. Case-sensitive.
--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 isoptions
.--query [query]
JMESPath query string. See http://jmespath.org/ for more information and examples.
-o, --output [output]
Output type.
json
,text
,csv
,md
,none
. Defaultjson
.--verbose
Runs command with verbose logging.
--debug
Runs command with debug logging.
Examples
Returns the value of the property from the property bag located in the given site
m365 spo propertybag get --webUrl https://contoso.sharepoint.com/sites/test --key key1
Returns the value of the property from the property bag located in root folder of the given site
m365 spo propertybag get --webUrl https://contoso.sharepoint.com/sites/test --key key1 --folder /
Returns the value of the property from the property bag located in document library of the given site
m365 spo propertybag get --webUrl https://contoso.sharepoint.com/sites/test --key key1 --folder '/Shared Documents'
Returns the value of the property from the property bag located in folder in a document library located in the given site
m365 spo propertybag get --webUrl https://contoso.sharepoint.com/sites/test --key key1 --folder '/Shared Documents/MyFolder'
Returns the value of the property from the property bag located in a list in the given site
m365 spo propertybag get --webUrl https://contoso.sharepoint.com/sites/test --key key1 --folder /Lists/MyList
Response
- JSON
- Text
- CSV
- Markdown
"Approved Rejected Pending\\ Review"
Approved Rejected Pending\\ Review
Approved Rejected Pending\ Review
Approved Rejected Pending\ Review