Example Astro app configured for Webflow Cloud.
/
├── public/
├── src/
│ ├── layouts/
│ ├── pages/
│ └── styles/
├── astro.config.mjs
├── wrangler.json
└── package.json
| Command | Action |
|---|---|
npm install |
Install dependencies |
npm run dev |
Start dev server at http://localhost:4321 |
npm run build |
Production build to ./dist/ |
npm run preview |
Build and preview with Wrangler locally |
npm run deploy |
Deploy with Webflow Cloud CLI |
Install Webflow CLI (global install is optional; you can also run the CLI without npx in the export step below).
npm install -g @webflow/webflow-cliLog in to Webflow and select your desired workspace from the opened browser window. You can append --force to reset any existing authentication.
npx webflow auth login # --forceThen, install the needed dependencies.
npm installSync all the Webflow components into your local filesystem. Answer the prompts to generate and configure your webflow.json.
npx webflow devlink exportSelect your desired Webflow site from the sites listed.
You can also view our DevLink documentation to learn more about all the options, features, and supported elements.
The webflow.json devlink-export block tells the Webflow CLI where to write generated React components from your linked Webflow site. After running webflow cloud init (or webflow auth login + webflow devlink export) the CLI populates ./webflow/ with components you can import directly into your Astro app.