@canva/cli 1.1.0 → 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 CHANGED
@@ -1,5 +1,21 @@
1
1
  # Changelog
2
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
+
3
19
  ## v1.1.0 - 2025-09-04
4
20
 
5
21
  ### Added
package/README.md CHANGED
@@ -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/).