For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Resources
Get started
ReferenceGuidesExamplesChangelog
ReferenceGuidesExamplesChangelog
  • Designer API
    • Introduction
    • Getting Started
    • Webflow CLI
    • Error Handling
    • App Modes
  • Elements
    • Creating & Retrieving Elements
    • Element Properties & Methods
    • Element Types & Methods
  • Styles
    • Managing Style Properties
    • Managing Variable Modes
  • Components
  • Variables & Collections
    • Variable Collections
    • Variables
    • Variable Modes
  • Assets
  • Pages & Folders
  • Utilities
    • User Events & Notifications
    • App Intents & Connections
  • Additional Resources
    • API Playground
    • FAQs
LogoLogo
Resources
Get started
On this page
  • Installation
  • Commands
  • init
  • serve
  • bundle
  • list
Designer API

Webflow CLI Reference

Was this page helpful?
Previous

Error Handling

Next
Built with

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 install -g @webflow/webflow-cli # or yarn add global @webflow/webflow-cli or pnpm add -g @webflow/webflow-cli

🔗 npm package

Commands

init

Initializes a new Designer Extension project. It’s highly recommended to start all projects with this command.

$webflow extension init <project-name> [template]

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:

$webflow extension list

Example of initializing a project with a React template:

$webflow extension init my-react-extension react

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.

$webflow extension serve

Options

Command OptionDescriptionDefault
--portThe port to serve your extension on.1337

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.

$webflow extension bundle

If you initialized your project with webflow extension init, you can also use the npm script build:

$npm run build

list

Lists all available templates that can be used with the init command.

$webflow extension list