© 2026 LinearBytes Inc.
Search posts, tags, users, and pages
Lucas Kaíque da Silva
Backend Developer
heroku config:set NODE_ENV=production › Error: Missing required flag: › -a, --app APP app to run › command › against › See more help with --help
Mine is not working, what is this error?
GOT IT!
When you create a Heroku app with:
heroku create my-app
you need to provide the flag (-a, --app) to the add-on installation:
heroku config:set NODE_ENV=production -a my-app
Simen Daehlin
Coding made easy
Hey Lucas Kaíque da Silva It needs to be
heroku config:Set NODE_ENV=production -a INSERT_APP_NAME
Youre missing to telling it what app you want to apply the config too :)