@canva/cli 0.0.1-beta.20 → 0.0.1-beta.22
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 +28 -0
- package/cli.js +291 -290
- package/lib/cjs/index.cjs +3 -387
- package/lib/esm/index.mjs +3 -387
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -109,6 +109,16 @@ To preview your app:
|
|
|
109
109
|
3. The preview URL will be generated and opened automatically in your browser.
|
|
110
110
|
4. If this the first time previewing your app, click **Open** to preview your new app.
|
|
111
111
|
|
|
112
|
+
### Step 4: Run a health check on your app
|
|
113
|
+
|
|
114
|
+
After creating your app, you can diagnose potential issues using:
|
|
115
|
+
|
|
116
|
+
```shell
|
|
117
|
+
canva apps doctor
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
This checks for missing dependencies, outdated packages, and other issues.
|
|
121
|
+
|
|
112
122
|
## Log out, auth token storage, and removal
|
|
113
123
|
|
|
114
124
|
When you log in to the Canva CLI using the `canva login` command, and then grant the Canva CLI access to manage apps in your Canva account, an auth token is encrypted and stored locally on your machine. The token provides authentication for future requests so you don't need to grant the Canva CLI access each time it sends a request.
|
|
@@ -242,12 +252,30 @@ canva apps
|
|
|
242
252
|
canva apps list
|
|
243
253
|
```
|
|
244
254
|
|
|
255
|
+
- **Flags**:
|
|
256
|
+
|
|
257
|
+
- `--appId`: Specifies an App ID to select.
|
|
258
|
+
- `--all`, `-a`: Lists all apps at once without pagination.
|
|
259
|
+
- `--print`, `-p`: Prints the list of apps to the console without interactivity.
|
|
260
|
+
|
|
245
261
|
- `preview`: Preview your app.
|
|
246
262
|
|
|
247
263
|
```shell
|
|
248
264
|
canva apps preview
|
|
249
265
|
```
|
|
250
266
|
|
|
267
|
+
- `doctor`: Run diagnostics on your Canva App to identify and fix issues.
|
|
268
|
+
|
|
269
|
+
```shell
|
|
270
|
+
canva apps doctor
|
|
271
|
+
```
|
|
272
|
+
|
|
273
|
+
- **Flags**:
|
|
274
|
+
|
|
275
|
+
- `--fix`: Automatically apply fixes for issues where possible.
|
|
276
|
+
- `--report`: Output check results without prompting for fixes.
|
|
277
|
+
- `--verbose`: Show detailed diagnostic output optimized for AI agent assistance.
|
|
278
|
+
|
|
251
279
|
#### logout
|
|
252
280
|
|
|
253
281
|
Log out and revoke Canva CLI access.
|