Skip to main 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 [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 is full.

--query [query]

JMESPath query string. See http://jmespath.org/ for more information and examples.

-o, --output [output]

Output type. json, text, csv, md. Default json.

--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"
CTRL + M