@canva/cli 0.0.1-beta.24 → 0.0.1-beta.26
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 +51 -41
- package/cli.js +181 -181
- package/lib/cjs/index.cjs +3 -3
- package/lib/esm/index.mjs +2 -2
- package/package.json +1 -1
- package/templates/base/package.json +2 -2
- package/templates/common/.cursor/mcp.json +8 -0
- package/templates/common/.vscode/mcp.json +9 -0
- package/templates/dam/package.json +4 -4
- package/templates/gen_ai/package.json +3 -3
- package/templates/hello_world/package.json +3 -3
package/README.md
CHANGED
|
@@ -203,6 +203,10 @@ Log out of the Canva CLI, and delete the saved auth token:
|
|
|
203
203
|
canva logout
|
|
204
204
|
```
|
|
205
205
|
|
|
206
|
+
#### mcp
|
|
207
|
+
|
|
208
|
+
Start the canva [MCP](https://modelcontextprotocol.io) server. This is usually called by your MCP client, such as Claude Desktop, Cursor, or other compatible tools. For more information on how to configure your MCP client to use the Canva MCP server, please see [MCP Server](https://www.canva.dev/docs/apps/mcp-server) in the developer documentation.
|
|
209
|
+
|
|
206
210
|
#### apps
|
|
207
211
|
|
|
208
212
|
Manage your Canva apps.
|
|
@@ -211,70 +215,76 @@ Manage your Canva apps.
|
|
|
211
215
|
canva apps
|
|
212
216
|
```
|
|
213
217
|
|
|
214
|
-
|
|
218
|
+
##### create
|
|
215
219
|
|
|
216
|
-
|
|
220
|
+
Create a new Canva app.
|
|
217
221
|
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
222
|
+
```shell
|
|
223
|
+
canva apps create "My New App" --template="hello_world" --distribution="public" --git --installDependencies
|
|
224
|
+
```
|
|
221
225
|
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
226
|
+
- **Arguments**:
|
|
227
|
+
- `--name`: Sets the app's name. Provide the name you want for the app.
|
|
228
|
+
- **Flags**:
|
|
225
229
|
|
|
226
|
-
|
|
230
|
+
- `--template`: Specifies the starting template for the app.
|
|
227
231
|
|
|
228
|
-
|
|
232
|
+
Available templates:
|
|
229
233
|
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
234
|
+
- `"hello_world"`: Basic starting point.
|
|
235
|
+
- `"dam"`: Digital asset management integration.
|
|
236
|
+
- `"gen_ai"`: Generative AI app creation.
|
|
233
237
|
|
|
234
|
-
|
|
238
|
+
- `--distribution`: Sets the app's distribution type.
|
|
235
239
|
|
|
236
|
-
|
|
240
|
+
Available types:
|
|
237
241
|
|
|
238
|
-
|
|
239
|
-
|
|
242
|
+
- `"public"`: Available to all Canva users, subject to Canva review.
|
|
243
|
+
- `"private"`: Only available to your team, and requires team admin approval.
|
|
240
244
|
|
|
241
|
-
|
|
245
|
+
**Note**: You can't change the distribution setting after creating a new app with the `canva apps create` command.
|
|
242
246
|
|
|
243
|
-
|
|
247
|
+
- `--git`: Initializes a Git repository in the project directory.
|
|
244
248
|
|
|
245
|
-
|
|
249
|
+
- `--installDependencies`: Automatically installs necessary npm dependencies during the app creation process.
|
|
246
250
|
|
|
247
|
-
|
|
251
|
+
- `--offline`: Scaffold the app locally without also creating an app in the Developer Portal.
|
|
248
252
|
|
|
249
|
-
|
|
253
|
+
##### list
|
|
250
254
|
|
|
251
|
-
|
|
252
|
-
canva apps list
|
|
253
|
-
```
|
|
255
|
+
List all Canva apps.
|
|
254
256
|
|
|
255
|
-
|
|
257
|
+
```shell
|
|
258
|
+
canva apps list
|
|
259
|
+
```
|
|
256
260
|
|
|
257
|
-
|
|
258
|
-
- `--all`, `-a`: Lists all apps at once without pagination.
|
|
259
|
-
- `--print`, `-p`: Prints the list of apps to the console without interactivity.
|
|
261
|
+
- **Flags**:
|
|
260
262
|
|
|
261
|
-
-
|
|
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.
|
|
262
266
|
|
|
263
|
-
|
|
264
|
-
canva apps preview
|
|
265
|
-
```
|
|
267
|
+
##### preview
|
|
266
268
|
|
|
267
|
-
|
|
269
|
+
Preview your app.
|
|
268
270
|
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
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
|
+
```
|
|
272
282
|
|
|
273
|
-
|
|
283
|
+
- **Flags**:
|
|
274
284
|
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
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.
|
|
278
288
|
|
|
279
289
|
#### logout
|
|
280
290
|
|