Skip to Content
Commands ReferenceCommands Reference

Commands Reference

Complete guide to all wfapi commands and their options.

Command Overview

CommandDescription
wfapi sitesList Webflow sites
wfapi configManage API token configuration
wfapi envManage environments
wfapi useManage site and collection context
wfapi cmsList CMS collections
wfapi itemsList CMS items
wfapi docsOpen documentation in browser
wfapi loginOAuth authentication (future)
wfapi --helpShow help for all commands

Global Options

All commands support:

wfapi <command> --help # Show help for specific command

Environment override (per command):

wfapi <command> --env test # same as --env=test wfapi items --raw --env=staging

Most core commands (sites, cms, items, schema, use) accept --env <name> to temporarily run against that environment without changing the saved ENV setting.

Context overrides (per command, no persistence):

wfapi cms --site my-site-slug wfapi items --site my-site --cms blog-posts wfapi schema --cms=products --env=dev

Use --site <id|slug> and --cms <id|slug> on supported commands to point at a different site/collection for a single call without updating saved context.

Last updated on