πŸ“’ New CLI Command: canva apps doctor – Catch Issues Before Submission!

Hey developers! :rocket:

We’re excited to introduce canva apps doctor, a new @canva/cli command to catch and fix issues before submitting your app for review .

:magnifying_glass_tilted_left: What does it check?

:white_check_mark: Missing dependencies – Ensures all required packages are installed.

:white_check_mark: Outdated packages – Checks for newer versions of critical dependencies.

:white_check_mark: Linting & formatting errors – Helps maintain clean, consistent code.

:white_check_mark: Runs your tests – Ensures everything is working before submission.

:high_voltage: How to Use It

Run the following inside your Canva App’s directory :

npm i -g @canva/cli@latest
canva apps doctor

Or run it without installation:

npx @canva/cli@latest apps doctor

canva apps doctor walks you through potential issues and automatically fixes some when possible.

:gear: Available Flags

Customize canva apps doctor with the following flags:

  • --fix: Automatically applies fixes where possible.
canva apps doctor --fix
  • --report: Outputs check results without prompting for fixes.
canva apps doctor --report

:megaphone: Help Us Improve It!

We want your input! What checks would make your life easier? Tell us in the comments or via our quick survey.

:backhand_index_pointing_right: Give Feedback

:rocket: Try it out now and let us know what you think!

5 Likes

Nice QoL improvement.

1 Like

Just tried it and it works well. Just curious, why not add it to the build step?

Very nice Work guys !!

1 Like

It’s a good idea, thanks. We’ll consider this.