@canva/cli 0.0.1-beta.20 → 0.0.1-beta.21
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 +21 -0
- package/cli.js +285 -285
- package/lib/cjs/index.cjs +54 -54
- package/lib/esm/index.mjs +54 -54
- 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.
|
|
@@ -248,6 +258,17 @@ canva apps
|
|
|
248
258
|
canva apps preview
|
|
249
259
|
```
|
|
250
260
|
|
|
261
|
+
- `doctor`: Run diagnostics on your Canva App to identify and fix issues.
|
|
262
|
+
|
|
263
|
+
```shell
|
|
264
|
+
canva apps doctor
|
|
265
|
+
```
|
|
266
|
+
|
|
267
|
+
- **Flags**:
|
|
268
|
+
|
|
269
|
+
- `--fix`: Automatically apply fixes for issues where possible.
|
|
270
|
+
- `--report`: Output check results without prompting for fixes.
|
|
271
|
+
|
|
251
272
|
#### logout
|
|
252
273
|
|
|
253
274
|
Log out and revoke Canva CLI access.
|