Introduction to the Webflow CLI
The Webflow CLI brings Webflow development into your local environment, allowing you to use your own tools, workflows, and version control. Use the CLI to manage sites, CMS content, forms, and assets, build and share code components, manage Webflow Cloud deployments, and sync code with your Webflow sites directly from the command line.
With the CLI, you can:
Installation
The Webflow CLI requires Node.js 22.13.0 or higher.
Install the Webflow CLI globally using npm:
Verify the installation:
Authentication
Authentication connects your Webflow account to the CLI, enabling you to deploy and sync code with Webflow.
This opens your browser to authenticate with a workspace. After you grant access, the CLI stores a WEBFLOW_API_TOKEN in your project’s .env file for future commands. For more information, see the authentication documentation.
Configuration
The webflow.json file is used to configure the CLI and should always be in the root of your app. Here you’ll define your app type, and the configuration for each product you’re using.
Below is an example of a webflow.json file for an app that uses Code Components, DevLink, and Webflow Cloud. To see more on configuration, see the configuration documentation.
Commands
The CLI is organized by command group:
Use --help with any command to see available options:
For more information on each command, see the command reference.