Skip to content

spo contenttype list

Lists content types from specified site

Usage

m365 spo contenttype list [options]

Options

-u, --webUrl <webUrl>
Absolute URL of the site for which to list content types
-c, --category [category]
Category name of content types. When defined will return only content types from specified category
-h, --help
output usage information
--query [query]
JMESPath query string. See http://jmespath.org/ for more information and examples
-o, --output [output]
Output type. json,text. Default text
--verbose
Runs command with verbose logging
--debug
Runs command with debug logging

Examples

Retrieve site content types

m365 spo contenttype list --webUrl "https://contoso.sharepoint.com/sites/contoso-sales"

Retrieve site content types from the 'List Content Types' category

m365 spo contenttype list --webUrl "https://contoso.sharepoint.com/sites/contoso-sales" --category "List Content Types"