App configuration
You can manage configuration for your app using the following methods:
- Canva CLI
- Canva Developer Portal
The configuration for an app includes settings such as intents, scopes and authentication.
Manage configuration using the Canva CLI
The Canva CLI can be used to manage your app's intents and scopes.
To check everything is set up for your app to manage configuration, run the Canva Apps Doctor. This creates or updates your canva-app.json file. At any time you can run the Apps Doctor to check the health of your app configuration.
Using the Canva CLI, you can pull the configuration from the Developer Portal, push your local configuration to update the Developer Portal, or check the status of your configuration with the apps config commands.
Example workflow: enabling the Data Connector intent
- Run
canva apps config pullto fetch the app configuration from the Developer Portal. - Edit the
canva-app.jsonfile to add the intent and required scopes (permissions):{"$schema": "https://www.canva.dev/schemas/app/v1/manifest-schema.json","manifest_schema_version": 1,"runtime": {"permissions": [{"name": "canva:design:content:read","type": "mandatory"},{"name": "canva:design:content:write","type": "mandatory"}],},"intent": {"data_connector": {"enrolled": true}}}JSON - Run
canva apps config pushto submit the local changes to the Developer Portal, and when prompted, confirm that the changes should be applied.
Manage configuration using the Developer Portal
To manage app settings using the Developer Portal:
- Navigate to an app via the Your apps(opens in a new tab or window) page on the Developer Portal.
- Change the settings on the relevant tabs.