Skip to content

spo list contenttype list

Lists content types configured on the list

Usage

spo list contenttype list [options]

Options

Option Description
--help output usage information
-u, --webUrl <webUrl> URL of the site where the list is located
-l, --listId [listId] ID of the list for which to list configured content types. Specify listId or listTitle but not both
-t, --listTitle [listTitle] Title of the list for which to list configured content types. Specify listId or listTitle but not both
-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 SharePoint, using the spo login command.

Remarks

To list all content types configured on a list, you have to first log in to SharePoint using the spo login command, eg. spo login https://contoso.sharepoint.com.

Examples

List all content types configured on the list with ID 0cd891ef-afce-4e55-b836-fce03286cccf located in site https://contoso.sharepoint.com/sites/project-x

spo list contenttype list --webUrl https://contoso.sharepoint.com/sites/project-x --listId 0cd891ef-afce-4e55-b836-fce03286cccf

List all content types configured on the list with title Documents located in site https://contoso.sharepoint.com/sites/project-x

spo list contenttype list --webUrl https://contoso.sharepoint.com/sites/project-x --listTitle Documents