@canva/cli 1.0.1 → 1.2.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 ADDED
@@ -0,0 +1,57 @@
1
+ # Changelog
2
+
3
+ ## v1.2.0 - 2025-09-15
4
+
5
+ ### Added
6
+
7
+ - Added `canva apps migrate` command to run code migrations for updating apps to newer patterns and APIs.
8
+ - Added Apps SDK v1 to v2 migration: `apps-sdk-v1-v2`.
9
+
10
+ ### Changed
11
+
12
+ - Updated the `canva apps doctor` command to check for legacy sdk directory usage.
13
+ - The `canva login` command no longer requires manually copying and pasting an auth code. To use the old login flow, add the `--mode=manual` argument.
14
+
15
+ ### Fixed
16
+
17
+ - Updated the Data Connector template example to match recent changes in the Connect API spec.
18
+
19
+ ## v1.1.0 - 2025-09-04
20
+
21
+ ### Added
22
+
23
+ - Added type exports for `generatePreviewUrl`.
24
+
25
+ ### Changed
26
+
27
+ - Updated `@modelcontextprotocol/sdk` dependency to `1.17.4`.
28
+ - Updated template READMEs to reflect the changes made to navigation structure in the developer portal.
29
+ - Updated `@canva/app-eslint-plugin` to `1.0.0-beta.5` across all templates.
30
+
31
+ ## v1.0.1 - 2025-08-25
32
+
33
+ ### Fixed
34
+
35
+ - Fixed a circular dependency issue in the `data_connector` and `gen_ai` templates causing the app not to load.
36
+ - A bug where the `gen_ai` template was not respecting the `canAcceptPayments` flag from the platform info.
37
+
38
+ ## v1.0.0 - 2025-08-21
39
+
40
+ ### Added
41
+
42
+ - Add a new `app config push|pull|status` command, to manage your app's Developer Portal manifest config locally.
43
+ - Add a new `canva bug` command to start the Github issue creation flow.
44
+ - Add `AGENTS.md` and `CLAUDE.md` support to CLI app creation process to provide instructions for AI agents such as Amp, Codex, Jules, etc...
45
+ - Add an extra step to the app creation process to allow for optional IDE config files to be added or not.
46
+
47
+ ```text
48
+ ? Select optional configs to add to your project: (Use space to toggle, arrow keys to navigate)
49
+ → [x] VS Code Settings - Add `.vscode` directory with editor settings and MCP setup
50
+ [x] Cursor AI Settings - Add `.cursor` directory with Cursor AI editor and MCP configuration
51
+ [x] AGENTS.md - Add AGENTS.md file with instructions for AI agents such as Amp, Codex, Jules, etc...
52
+ [ ] CLAUDE.md - Add CLAUDE.md file with instructions for Claude Code
53
+
54
+ ────────────────────────────────────────────────────────────
55
+ Continue (3 selected)
56
+ Selected: VS Code Settings, Cursor AI Settings, AGENTS.md
57
+ ```
package/README.md CHANGED
@@ -90,7 +90,7 @@ To create a new app:
90
90
 
91
91
  ### Step 3: Preview your app
92
92
 
93
- When your new app is ready, the Canva CLI automatically opens the [Developer Portal](https://www.canva.com/developers/apps) to your new app's Configuration page in your browser. You can then continue to preview and manage your new app.
93
+ When your new app is ready, the Canva CLI automatically opens the [Developer Portal](https://www.canva.com/developers/apps) to your new app's configuration page in your browser. You can then continue to preview and manage your new app.
94
94
 
95
95
  To preview your app:
96
96
 
@@ -204,6 +204,11 @@ canva login
204
204
 
205
205
  - **Flags**:
206
206
  - `--china`, `--cn`: Login to canva.cn, this will use canva.cn for all subsequent commands until you log out.
207
+ - `--mode`: The authentication mode or flow to use when logging in.
208
+
209
+ Available modes:
210
+ - `"callback"`: Runs a local server to receive the auth code (default).
211
+ - `"manual"`: Prompts you to copy and paste the auth code manually.
207
212
 
208
213
  #### logout
209
214
 
@@ -302,6 +307,27 @@ canva apps doctor
302
307
  - `--verbose`: Show detailed diagnostic output optimized for AI agent assistance.
303
308
  - `--check`: Specify a specific check to run.
304
309
 
310
+ ##### migrate
311
+
312
+ Run specific code migrations to update your app to newer patterns and APIs.
313
+
314
+ ```shell
315
+ canva apps migrate <migrationName>
316
+ ```
317
+
318
+ - **Arguments**:
319
+ - `migrationName`: Name of the migration to run.
320
+
321
+ Available migrations:
322
+ - `"apps-sdk-v1-v2"`: Migrates apps using the Apps SDK v1 packages to v2.
323
+
324
+ - **Examples**:
325
+
326
+ ```shell
327
+ canva apps migrate apps-sdk-v1-v2
328
+ canva apps migrate apps-sdk-v1-v2 --debug
329
+ ```
330
+
305
331
  ##### config
306
332
 
307
333
  Manage your [App Configuration](https://www.canva.dev/docs/apps/app-configuration/).