@webflow/webflow-cli 1.22.0-next.2 → 1.22.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,28 @@
1
1
  # @webflow/webflow-cli
2
2
 
3
+ ## 1.22.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 75edc28: - `cloud deploy` no longer auto-routes to a site picker when the project is not initialized for Webflow Cloud. A new preflight phase resolves identity (site or workspace) before any backend call, preventing orphan Cloud apps when later steps fail.
8
+ - New scripting-friendly flags on `cloud deploy`: `-s, --site-id`, `-p, --project-id`, `-f, --framework`.
9
+ - Fix: `framework-detection` no longer overwrites unrelated `webflow.json` fields when auto-detecting a framework, and no longer throws on partial manifests that have a `cloud` block without a `framework` key — it falls back to `package.json` detection.
10
+
11
+ ### Patch Changes
12
+
13
+ - b290822: `cloud deploy` now auto-detects the framework from `package.json` when `webflow.json` is missing or has no `cloud.framework`, instead of hard-failing. Detection uses the same builder registry that runs later in the build, and the resulting framework is written into a minimal `webflow.json` so subsequent deploys are stable. If no framework can be detected, the error now lists the supported options (astro / nextjs / vite). Also widens the cloud manifest schema with `.passthrough()` so CLI-managed fields like `project_id` survive the round-trip.
14
+ - d97b310: - Fix `cloud deploy` writing complete framework metadata (`deployment_type` and `entrypoint_path`) into the bundle's `webflow.json`. Without this, Next.js / Remix deploys silently failed in the dashboard while the CLI reported success, because the deployer fell back to a generic `./index.js` entrypoint.
15
+ - `cloud init` now fetches site-attached scaffolds from GitHub (`Webflow-Examples/hello-world-*`) instead of bundling them in the CLI binary. No behavior change for end users beyond requiring network access during init.
16
+ - 6dbf426: Fix the noisy `[DEP0040]` deprecation warning that appeared before every command's output when running on Node 22+. Other warnings continue to be shown as usual.
17
+ - d56915a: Upgrade webflow-api to 3.3.4 to resolve elliptic audit finding.
18
+ - ab60245: Exclude `dist` and `node_modules` when discovering Code Component declaration files.
19
+ - e9dee8c: Fix `webflow library bundle` when the library `name` in `webflow.json` contains punctuation or other non-alphanumeric characters (except `-` and `_`). The bundler now derives a safe Module Federation identifier the same way component import names are normalized; symbol-only names fall back to `CodeLibrary`.
20
+ - c9a430a: - Port the cosmic-builder `FrameworkBuilder` hierarchy into the CLI (`apps/webflow-cli/src/cloud/builder/`). The CLI's local build now shares the same framework support and behavior as the GitHub-import (cosmic) build path, so both producers ship equivalent tarballs to the cosmic deployer. Aligns with cosmic-builder v1.2.0's `webflow.json` contract (`entrypoint_path`, `deployment_type`). Fixes builds for frameworks whose dry-run entry isn't `./index.js` (Next.js → `./worker.js`, Astro 6 → `./entry.mjs`, Vite → `./src/worker.ts`) — includes the Next.js deploy fix for CLD-1619.
21
+ - `handleWranglerJson` is now the single owner of `wrangler.json` during the build; framework `prepareConfig()` implementations no longer redundantly copy the template after user bindings have been merged, so KV / R2 / D1 bindings now reliably appear in the local dry-run output.
22
+ - `webflow.json` is now copied into the deploy tarball, so the cosmic deployer can identify the framework for Astro / Vite tarballs (previously bailed with "could not find webflow.json in extracted output").
23
+ - Internal: introduces `logStageBanner(emoji, label)` for consistent build-stage output. Removes the experimental Remix framework builder (was never wired up to scaffolds in production).
24
+ - 5853814: docs: add Forms commands section to README for v1.21.0
25
+
3
26
  ## 1.21.0
4
27
 
5
28
  ### Minor Changes
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @webflow/webflow-cli
2
2
 
3
- The Webflow CLI lets you manage Webflow sites, CMS content, assets, and code components from the command line.
3
+ The Webflow CLI lets you manage Webflow sites, CMS content, forms, assets, and code components from the command line.
4
4
 
5
5
  ## Installation
6
6
 
@@ -13,6 +13,7 @@ npm install -g @webflow/webflow-cli
13
13
  - [Authentication](#authentication)
14
14
  - [Sites](#sites)
15
15
  - [CMS](#cms)
16
+ - [Forms](#forms)
16
17
  - [Assets](#assets)
17
18
  - [DevLink Import (Code Components)](#devlink-import-code-components)
18
19
  - [DevLink Export](#devlink-export)
@@ -93,6 +94,37 @@ webflow cms items publish --site <siteId> --collection <collectionId> --item <it
93
94
 
94
95
  ---
95
96
 
97
+ ## Forms
98
+
99
+ List forms and export submissions from a Webflow site.
100
+
101
+ ```shell
102
+ webflow forms list --site <siteId> # List all forms on a site
103
+ webflow forms submissions --site <siteId> --form <formId> # List submissions in the terminal
104
+ webflow forms submissions --site <siteId> --form <formId> --output out.csv # Export submissions to CSV
105
+ ```
106
+
107
+ > **Note:** Forms commands require the `forms:read` OAuth scope. If you authenticated before upgrading to v1.21.0, run `webflow auth login --force` to pick up the new scope.
108
+
109
+ ### `forms list` options
110
+
111
+ | Flag | Description |
112
+ | ------------------- | ------------------------------------------------------------------------------------------------------------------------- |
113
+ | `--site <siteId>` | Site ID (required) |
114
+ | `--fields <fields>` | Comma-separated columns: `id`, `displayName`, `name`, `slug`, `createdOn`, `lastUpdated` (default: `id,displayName,slug`) |
115
+ | `--json` | Output as JSON |
116
+
117
+ ### `forms submissions` options
118
+
119
+ | Flag | Description |
120
+ | ----------------- | ---------------------------------------------------- |
121
+ | `--site <siteId>` | Site ID (required) |
122
+ | `--form <formId>` | Form ID (required) |
123
+ | `--output <file>` | Save all submissions as CSV to the specified file |
124
+ | `--json` | Output as JSON (ignored when `--output` is also set) |
125
+
126
+ ---
127
+
96
128
  ## Assets
97
129
 
98
130
  Upload and manage site assets.
@@ -31,7 +31,7 @@ export const FRAMEWORK_REGISTRY: Record<string, FrameworkDefinition> = {
31
31
  name: "Astro",
32
32
  source: {
33
33
  type: "github",
34
- repo: "Webflow-Examples/hello-world-astro6",
34
+ repo: "Webflow-Examples/hello-world-astro",
35
35
  ref: "v1",
36
36
  },
37
37
  },
@@ -49,7 +49,7 @@ export const FRAMEWORK_REGISTRY: Record<string, FrameworkDefinition> = {
49
49
  name: "Astro (site-attached)",
50
50
  source: {
51
51
  type: "github",
52
- repo: "Webflow-Examples/hello-world-astro6-devlink",
52
+ repo: "Webflow-Examples/hello-world-astro-devlink",
53
53
  ref: "v1",
54
54
  },
55
55
  },