Provisioning
Provision the add-on using the Heroku CLI:Regional availability
| Runtime | Regions |
|---|---|
| Common Runtime | United States, Europe |
| Private Spaces | Dublin, Frankfurt, London, Montreal, Mumbai, Oregon, Singapore, Sydney, Tokyo, Virginia |
Accessing your API token
After provisioning, a<APP_NAME>_BUTTER_TOKEN config var is automatically added to your Heroku app. Confirm it is set with:
Local development
To use the token in your local environment, add it to a.env file:
Using the token in your app
Reference<APP_NAME>_BUTTER_TOKEN as an environment variable in your application code rather than hardcoding it:
<APP_NAME>_BUTTER_TOKEN is a read API token. If you need write access, contact ButterCMS support to enable a write token.Accessing the ButterCMS dashboard
Open the ButterCMS dashboard directly from the CLI using Heroku SSO:Supported languages & frameworks
JavaScript
Node.js, React, Vue.js, Angular
Python
Python, Django
Ruby
Ruby, Rails
PHP
PHP, Laravel
Go
Go
JVM
Java, Scala, Clojure
Deprovisioning
To remove the ButterCMS add-on from your app:Troubleshooting
<APP_NAME>_BUTTER_TOKEN is not set after provisioning
<APP_NAME>_BUTTER_TOKEN is not set after provisioning
Run
heroku config to list all config vars for your app. If <APP_NAME>_BUTTER_TOKEN is missing, try reprovisioning the add-on or contact ButterCMS support.I can't open the dashboard with heroku addons:open butter
I can't open the dashboard with heroku addons:open butter
Ensure you are logged in to the Heroku CLI (
heroku login) and that the add-on is provisioned for the correct app. Specify the app explicitly if needed: heroku addons:open butter --app YOUR_APP_NAME.Who do I contact for support?
Who do I contact for support?
For Heroku-specific provisioning issues, use Heroku Support. For ButterCMS product questions, contact support@buttercms.com.