List
The cem list command provides a fast, flexible way to inspect your custom elements manifest.
Without any subcommands, cem list prints a table of all declarations in the manifest.
cem listFlags
| Flag | Description |
|---|---|
--package, -p | Deno-style package specifier (e.g., npm:@scope/package@^1.2.3) or path to a package directory. |
--format | Set the output format. Can be table or tree. Default: table. |
--deprecated | Only show deprecated items. |
Example:
cem list --deprecated --format tree
cem list --package npm:@vaadin/button@24.3.5Subcommands
tags
Lists all custom element tag names in the project.
Flags:
| Flag | Description |
|---|---|
--columns, -c | Specify which columns to include. |
Available Columns: Name, Class, Module, Summary
Example:
cem list tags -c Class -c Modulemodules
Lists all module paths in the project.
Flags:
| Flag | Description |
|---|---|
--columns, -c | Specify which columns to include. |
Available Columns: Name, Path
Example:
cem list modulesattributes (aliases: attrs)
Lists all attributes for a given custom element.
Flags:
| Flag | Description |
|---|---|
--tag-name, -t | (Required) The tag name of the element to inspect. |
--columns, -c | Specify which columns to include. |
Available Columns: Name, DOM Property, Reflects, Summary
Example:
cem list attributes -t my-element -c "DOM Property"slots
Lists all named and default slots for a tag.
Flags:
| Flag | Description |
|---|---|
--tag-name, -t | (Required) The tag name of the element to inspect. |
--columns, -c | Specify which columns to include. |
Available Columns: Name, Summary
Example:
cem list slots -t my-elementevents
Lists all custom events fired by a tag.
Flags:
| Flag | Description |
|---|---|
--tag-name, -t | (Required) The tag name of the element to inspect. |
--columns, -c | Specify which columns to include. |
Available Columns: Name, Type, Summary
Example:
cem list events -t my-elementcss-properties (aliases: css-props)
Lists CSS custom properties for a tag.
Flags:
| Flag | Description |
|---|---|
--tag-name, -t | (Required) The tag name of the element to inspect. |
--columns, -c | Specify which columns to include. |
Available Columns: Name, Syntax, Default, Summary
Example:
cem list css-properties -t my-elementcss-states
Lists CSS custom states for a tag.
Flags:
| Flag | Description |
|---|---|
--tag-name, -t | (Required) The tag name of the element to inspect. |
--columns, -c | Specify which columns to include. |
Available Columns: Name, Summary
Example:
cem list css-states -t my-elementcss-parts
Lists CSS shadow parts for a tag.
Flags:
| Flag | Description |
|---|---|
--tag-name, -t | (Required) The tag name of the element to inspect. |
--columns, -c | Specify which columns to include. |
Available Columns: Name, Summary
Example:
cem list css-parts -t my-elementmethods
Lists methods for a tag’s class.
Flags:
| Flag | Description |
|---|---|
--tag-name, -t | (Required) The tag name of the element to inspect. |
--columns, -c | Specify which columns to include. |
Available Columns: Name, Return, Privacy, Summary
Example:
cem list methods -t my-elementdemos
Lists all demos for a given custom element.
Flags:
| Flag | Description |
|---|---|
--tag-name, -t | (Required) The tag name of the element to inspect. |
--columns, -c | Specify which columns to include. |
Available Columns: URL, Description
Example:
cem list demos -t my-element