cwp bricks post-types list
shipped 1.0.0cwp bricks post-types list [env] [flags]
Acts on the local site. Name an environment to act there instead.
| Argument | What it is | Default |
|---|---|---|
[env] | environment to read (default: default_environment in cwp.yml) |
| Flag | What it does | Default |
|---|---|---|
--with-agent | with —dry-run on a host with no shell: install and remove the PHP agent so the plan is real | off |
Plus the shared flags --json, -v, --verbose, -q, --quiet and --dry-run.
What it does
cwp bricks post-types list lists the post types the Bricks builder will open
for, and the ones you could plausibly add.
The listing shows post types that are public, custom and not Bricks’ own. It also shows anything currently enabled, whatever it is. A list that hid an unexpected entry would answer a different question.
Example
cwp bricks post-types list
cwp bricks post-types list prod
What it does not do
It changes nothing. It does not tell you whether a post type is registered on
the target. cwp doctor does that: it checks both sides and
reports the ones that exist on only one.