@webflow/webflow-cli 1.22.0-next.2 → 1.22.0-next.3
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/README.md +33 -1
- package/dist/cloud-scaffolds/registry.ts +2 -2
- package/dist/index.js +87 -84
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
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-
|
|
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-
|
|
52
|
+
repo: "Webflow-Examples/hello-world-astro-devlink",
|
|
53
53
|
ref: "v1",
|
|
54
54
|
},
|
|
55
55
|
},
|