wfapi cms
List CMS collections for the currently selected site.
Requirements
Site context must be set first:
wfapi use site <siteId|shortName>Basic Usage
wfapi cmsOptions
| Option | Description |
|---|---|
--site <id|slug> | Use a specific site for this call (no persistence) |
--env <env> | Use a specific environment for this call (does not change saved ENV) |
Output
Displays for each collection:
- Collection name
- Slug
- Collection ID
Example Workflow
# Set site context
wfapi use site my-site
# List collections
wfapi cms
# Output:
# Blog Posts blog-posts 6611b3f9f3b1f1e2c0a12345
# Team Members team-members 7722c4a8d4c2e2f3d1b23456
# Projects projects 8833d5b9e5d3f3a4e2c34567Last updated on