Webflow CLI Reference
The Webflow CLI streamlines the development process for creating Webflow Designer Extensions. This page provides a reference for its installation and commands.
Regularly check for updates to the CLI and the Designer Extension Type Definitions to ensure compatibility.
Installation
Before installing, ensure you have Node.js and package manager of your choice installed.
To install the Webflow CLI globally, use your package manager of choice:
š npm package
Commands
init
Initializes a new Designer Extension project. Itās highly recommended to start all projects with this command.
Arguments
project-name(required): The name of your new project directory.template(optional): The name of a template to use.
Templates
You can use templates for specific libraries and languages. To see a list of available templates, run:
Example of initializing a project with a React template:
serve
Serves your Designer Extension locally at port 1337, allowing you to interact with it inside the Webflow Designer. Additionally, you can use the --port option to serve your extension on a different port.
Options
bundle
Bundles your extension and creates a bundle.zip file in your projectās root directory. This file is used to upload your extension to Webflow.
If you initialized your project with webflow extension init, you can also use the npm script build:
list
Lists all available templates that can be used with the init command.