Skip to content

spo field get

Retrieves information about the specified list or site column

Usage

spo field get [options]

Options

Option Description
--help output usage information
-u, --webUrl <webUrl> Absolute URL of the site where the field is located
-l, --listTitle [listTitle] Title of the list where the field is located(if it is a list column)
-i, --id <id> The ID of the field to retrieve
-o, --output [output] Output type. json|text. Default text
--verbose Runs command with verbose logging
--debug Runs command with debug logging

Important

Before using this command, log in to a SharePoint Online site, using the spo login command.

Remarks

To retrieve information about a field, you have to first log in to a SharePoint Online site using the spo login command, eg. spo login https://contoso.sharepoint.com.

Examples

Retrieve site column

spo field get --webUrl https://contoso.sharepoint.com/sites/contoso-sales --id 5ee2dd25-d941-455a-9bdb-7f2c54aed11b

Retrieve list column

spo field get --webUrl https://contoso.sharepoint.com/sites/contoso-sales --listTitle Events --id 5ee2dd25-d941-455a-9bdb-7f2c54aed11b