spo field list¶
Retrieves columns for the specified list or site
Usage¶
m365 spo field list [options]
Options¶
-u, --webUrl <webUrl>
- Absolute URL of the site where fields are located
-t, --listTitle [listTitle]
- Title of the list where fields are located. Specify
listTitle
,listId
orlistUrl
-i --listId [listId]
- ID of the list where fields are located. Specify
listTitle
,listId
orlistUrl
--listUrl [listUrl]
- Server- or web-relative URL of the list where fields are located. Specify
listTitle
,listId
orlistUrl
-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 isfull
. --query [query]
- JMESPath query string. See http://jmespath.org/ for more information and examples
-o, --output [output]
- Output type.
json,text,csv,md
. Defaultjson
--verbose
- Runs command with verbose logging
--debug
- Runs command with debug logging
Examples¶
Retrieves site columns for site https://contoso.sharepoint.com/sites/contoso-sales.
m365 spo field list --webUrl https://contoso.sharepoint.com/sites/contoso-sales
Retrieves list columns for list Events in site https://contoso.sharepoint.com/sites/contoso-sales
m365 spo field list --webUrl https://contoso.sharepoint.com/sites/contoso-sales --listTitle Events
Retrieves list columns for list 202b8199-b9de-43fd-9737-7f213f51c991 in site https://contoso.sharepoint.com/sites/contoso-sales
m365 spo field list --webUrl https://contoso.sharepoint.com/sites/contoso-sales --listId '202b8199-b9de-43fd-9737-7f213f51c991'
Retrieves list columns for list /sites/contoso-sales/lists/Events in site https://contoso.sharepoint.com/sites/contoso-sales
m365 spo field list --webUrl https://contoso.sharepoint.com/sites/contoso-sales --listUrl '/sites/contoso-sales/lists/Events'