@canva/cli 0.0.1-beta.25 → 0.0.1-beta.28
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 +47 -41
- package/cli.js +469 -443
- package/package.json +7 -2
- package/templates/base/package.json +2 -2
- package/templates/base/webpack.config.ts +12 -4
- package/templates/dam/eslint.config.mjs +1 -2
- package/templates/dam/package.json +4 -4
- package/templates/dam/src/config.ts +3 -0
- package/templates/dam/webpack.config.ts +12 -4
- package/templates/gen_ai/package.json +3 -3
- package/templates/gen_ai/webpack.config.ts +12 -4
- package/templates/hello_world/package.json +3 -3
- package/templates/hello_world/webpack.config.ts +12 -4
package/README.md
CHANGED
|
@@ -215,70 +215,76 @@ Manage your Canva apps.
|
|
|
215
215
|
canva apps
|
|
216
216
|
```
|
|
217
217
|
|
|
218
|
-
|
|
218
|
+
##### create
|
|
219
219
|
|
|
220
|
-
|
|
220
|
+
Create a new Canva app.
|
|
221
221
|
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
222
|
+
```shell
|
|
223
|
+
canva apps create "My New App" --template="hello_world" --distribution="public" --git --installDependencies
|
|
224
|
+
```
|
|
225
225
|
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
226
|
+
- **Arguments**:
|
|
227
|
+
- `--name`: Sets the app's name. Provide the name you want for the app.
|
|
228
|
+
- **Flags**:
|
|
229
229
|
|
|
230
|
-
|
|
230
|
+
- `--template`: Specifies the starting template for the app.
|
|
231
231
|
|
|
232
|
-
|
|
232
|
+
Available templates:
|
|
233
233
|
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
234
|
+
- `"hello_world"`: Basic starting point.
|
|
235
|
+
- `"dam"`: Digital asset management integration.
|
|
236
|
+
- `"gen_ai"`: Generative AI app creation.
|
|
237
237
|
|
|
238
|
-
|
|
238
|
+
- `--distribution`: Sets the app's distribution type.
|
|
239
239
|
|
|
240
|
-
|
|
240
|
+
Available types:
|
|
241
241
|
|
|
242
|
-
|
|
243
|
-
|
|
242
|
+
- `"public"`: Available to all Canva users, subject to Canva review.
|
|
243
|
+
- `"private"`: Only available to your team, and requires team admin approval.
|
|
244
244
|
|
|
245
|
-
|
|
245
|
+
**Note**: You can't change the distribution setting after creating a new app with the `canva apps create` command.
|
|
246
246
|
|
|
247
|
-
|
|
247
|
+
- `--git`: Initializes a Git repository in the project directory.
|
|
248
248
|
|
|
249
|
-
|
|
249
|
+
- `--installDependencies`: Automatically installs necessary npm dependencies during the app creation process.
|
|
250
250
|
|
|
251
|
-
|
|
251
|
+
- `--offline`: Scaffold the app locally without also creating an app in the Developer Portal.
|
|
252
252
|
|
|
253
|
-
|
|
253
|
+
##### list
|
|
254
254
|
|
|
255
|
-
|
|
256
|
-
canva apps list
|
|
257
|
-
```
|
|
255
|
+
List all Canva apps.
|
|
258
256
|
|
|
259
|
-
|
|
257
|
+
```shell
|
|
258
|
+
canva apps list
|
|
259
|
+
```
|
|
260
260
|
|
|
261
|
-
|
|
262
|
-
- `--all`, `-a`: Lists all apps at once without pagination.
|
|
263
|
-
- `--print`, `-p`: Prints the list of apps to the console without interactivity.
|
|
261
|
+
- **Flags**:
|
|
264
262
|
|
|
265
|
-
-
|
|
263
|
+
- `--appId`: Specifies an App ID to select.
|
|
264
|
+
- `--all`, `-a`: Lists all apps at once without pagination.
|
|
265
|
+
- `--print`, `-p`: Prints the list of apps to the console without interactivity.
|
|
266
266
|
|
|
267
|
-
|
|
268
|
-
canva apps preview
|
|
269
|
-
```
|
|
267
|
+
##### preview
|
|
270
268
|
|
|
271
|
-
|
|
269
|
+
Preview your app.
|
|
272
270
|
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
271
|
+
```shell
|
|
272
|
+
canva apps preview
|
|
273
|
+
```
|
|
274
|
+
|
|
275
|
+
##### doctor
|
|
276
|
+
|
|
277
|
+
Run diagnostics on your Canva App to identify and fix issues.
|
|
278
|
+
|
|
279
|
+
```shell
|
|
280
|
+
canva apps doctor
|
|
281
|
+
```
|
|
276
282
|
|
|
277
|
-
|
|
283
|
+
- **Flags**:
|
|
278
284
|
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
285
|
+
- `--fix`: Automatically apply fixes for issues where possible.
|
|
286
|
+
- `--report`: Output check results without prompting for fixes.
|
|
287
|
+
- `--verbose`: Show detailed diagnostic output optimized for AI agent assistance.
|
|
282
288
|
|
|
283
289
|
#### logout
|
|
284
290
|
|