@webflow/webflow-cli 2.0.0-next.0 → 2.1.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,62 @@
1
1
  # @webflow/webflow-cli
2
2
 
3
+ ## 2.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 7815a63: Align `webflow cloud` with the "Apps" product naming.
8
+
9
+ - Add a `-n, --app-name` flag to `webflow cloud init` and `webflow cloud deploy`, and a `-a, --app-id` flag to `webflow cloud deploy`. The legacy `--project-name` (both commands) and `--project-id` (`deploy`) flags continue to work but are now deprecated and emit a warning. The `-p` short flag has been replaced by `-a`.
10
+ - Rename the `cloud.project_id` field in `webflow.json` to `cloud.app_id`. New deploys always write `cloud.app_id`. Existing manifests with `cloud.project_id` are read transparently — no manual migration needed. The legacy field will be removed in a future major release.
11
+
12
+ ### Patch Changes
13
+
14
+ - 2c369de: Fix pluralization in the workspace app-limit error: a limit of `1` now correctly reads "1 Cloud app" instead of "1 Cloud apps".
15
+
16
+ - 2c369de: Show the workspace plan name and app limit in the `webflow cloud create` error when the workspace has reached its app limit. The message now reads, for example:
17
+
18
+ > Your "Starter" workspace is limited to 2 Cloud apps.
19
+ > Upgrade your plan or remove unused apps to create a new one.
20
+
21
+ - 07af4e7: Fix `webflow cloud init` to prompt for authentication before asking project-name, framework, and mount-path questions. Previously, unauthenticated runs would collect all answers and then fail at site lookup, leaving a half-set-up scaffold. Auth errors now surface immediately.
22
+
23
+ - 7ff78f5: Fix `webflow cloud init --no-input --site-id <id>` not connecting the project to the site and skipping DevLink export. Passing `--site-id` now forces the existing-site flow even in non-interactive mode. `--new` and `--site-id` are now mutually exclusive — passing both fails fast with a clear error.
24
+
25
+ - 600a2f6: Skip the "New domain vs existing site" prompt in `webflow cloud init` when the workspace has no Webflow sites. The init flow goes straight to the standalone (new app) path and shows a short note instead.
26
+
27
+ - 03aea02: Suppress the DevLink Export error in `webflow cloud init` when the connected site or workspace is on a plan without DevLink Export. Instead of a red error chain, the CLI now shows a one-line notice and continues normally:
28
+
29
+ ```
30
+ ℹ Skipped component export — requires a paid Site or Workspace plan. Upgrade at https://webflow.com/pricing.
31
+ ```
32
+
33
+ `webflow export` used directly is unchanged — it still surfaces the full error.
34
+
35
+ ## 2.0.0
36
+
37
+ ### Major Changes
38
+
39
+ - b0c1916: Raise the supported Node.js baseline to 22.13.0 for the CLI and repository tooling, and update CI coverage to Node 22, 24, and 25.
40
+
41
+ ### Minor Changes
42
+
43
+ - 07650b5: - `cloud init --framework astro` now scaffolds **Astro 6** projects, sourced from the new `v2` branches on the existing [`Webflow-Examples/hello-world-astro`](https://github.com/Webflow-Examples/hello-world-astro/tree/v2) and [`hello-world-astro-devlink`](https://github.com/Webflow-Examples/hello-world-astro-devlink/tree/v2) repos. No version picker — users starting fresh always get the latest supported version. The Astro 5 scaffolds (`v1` branches on the same repos) remain frozen so older CLI installs continue to scaffold Astro 5.
44
+ - `WEBFLOW_SITE_ID` env var is now uniformly **read-only**: the CLI uses it for the current command but never auto-persists it into `webflow.json`. To persist a site ID, run `webflow cloud init` or pass `--site-id` explicitly.
45
+ - `webflow cloud init` prompts "New domain vs Existing site" in interactive mode (skipped only when `--new` is passed explicitly), and defaults to `New` in no-input mode (v1.x used to default to `Existing` here).
46
+ - `webflow cloud create` now emits a deprecation warning for every install and will be removed in a future major release. Use `webflow cloud init` instead.
47
+ - Deploy preflight always shows the "Pass --site-id explicitly or unset to see the deploy mode picker" hint when falling back to `WEBFLOW_SITE_ID`, and the no-identity error always lists both `--site-id` and `--workspace-id`.
48
+ - c4fee62: Use `@webflow/react/server` as the server renderer for Code Components.
49
+
50
+ ### Patch Changes
51
+
52
+ - b72178a: Refresh `webflow cloud` copy: command descriptions, option help, prompts, and error messages now consistently use "app" instead of "project" in favor of clearer language. No flag, command, or manifest field names changed — this is a copy-only update.
53
+ - 2fd0d33: Migrate extension scaffolds to ESLint 9 with flat config (`eslint.config.mjs`), `typescript-eslint` v8, and updated lint scripts.
54
+ - d91f805: Polish CLI formatting across commands
55
+ - 953172d: Show deprecation warnings when using `webflow library share`, `webflow library bundle`, or `webflow library log`, including `[Deprecated]` hints in help text. Prefer `webflow devlink import`, `webflow devlink bundle`, and `webflow log`; the `library` command group will be removed in the next major release.
56
+ - 8728f7c: Add deprecation note to "webflow devlink sync" command in help.
57
+ - Updated dependencies [14c2ebc]
58
+ - @webflow/data-types@2.0.0
59
+
3
60
  ## 1.23.0
4
61
 
5
62
  ### Patch Changes
@@ -0,0 +1,25 @@
1
+ {
2
+ "extends": [
3
+ "eslint:recommended",
4
+ "plugin:@typescript-eslint/eslint-recommended",
5
+ "plugin:@typescript-eslint/recommended"
6
+ ],
7
+ "parser": "@typescript-eslint/parser",
8
+ "parserOptions": {
9
+ "project": "./tsconfig.json"
10
+ },
11
+ "plugins": ["@typescript-eslint", "promise"],
12
+ "rules": {
13
+ "@typescript-eslint/explicit-function-return-type": "off",
14
+ "@typescript-eslint/no-explicit-any": "off",
15
+ "@typescript-eslint/no-floating-promises": "error",
16
+ "@typescript-eslint/no-misused-promises": [
17
+ "error",
18
+ { "checksVoidReturn": false }
19
+ ],
20
+ "@typescript-eslint/no-unused-vars": "error",
21
+ "no-async-promise-executor": "error",
22
+ "require-await": "error",
23
+ "promise/catch-or-return": "error"
24
+ }
25
+ }
@@ -0,0 +1,25 @@
1
+ {
2
+ "extends": [
3
+ "eslint:recommended",
4
+ "plugin:@typescript-eslint/eslint-recommended",
5
+ "plugin:@typescript-eslint/recommended"
6
+ ],
7
+ "parser": "@typescript-eslint/parser",
8
+ "parserOptions": {
9
+ "project": "./tsconfig.json"
10
+ },
11
+ "plugins": ["@typescript-eslint", "promise"],
12
+ "rules": {
13
+ "@typescript-eslint/explicit-function-return-type": "off",
14
+ "@typescript-eslint/no-explicit-any": "off",
15
+ "@typescript-eslint/no-floating-promises": "error",
16
+ "@typescript-eslint/no-misused-promises": [
17
+ "error",
18
+ { "checksVoidReturn": false }
19
+ ],
20
+ "@typescript-eslint/no-unused-vars": "error",
21
+ "no-async-promise-executor": "error",
22
+ "require-await": "error",
23
+ "promise/catch-or-return": "error"
24
+ }
25
+ }
@@ -0,0 +1,25 @@
1
+ {
2
+ "extends": [
3
+ "eslint:recommended",
4
+ "plugin:@typescript-eslint/eslint-recommended",
5
+ "plugin:@typescript-eslint/recommended"
6
+ ],
7
+ "parser": "@typescript-eslint/parser",
8
+ "parserOptions": {
9
+ "project": "./tsconfig.json"
10
+ },
11
+ "plugins": ["@typescript-eslint", "promise"],
12
+ "rules": {
13
+ "@typescript-eslint/explicit-function-return-type": "off",
14
+ "@typescript-eslint/no-explicit-any": "off",
15
+ "@typescript-eslint/no-floating-promises": "error",
16
+ "@typescript-eslint/no-misused-promises": [
17
+ "error",
18
+ { "checksVoidReturn": false }
19
+ ],
20
+ "@typescript-eslint/no-unused-vars": "error",
21
+ "no-async-promise-executor": "error",
22
+ "require-await": "error",
23
+ "promise/catch-or-return": "error"
24
+ }
25
+ }