heroku commands and usages
***********************About heroku *****************************************************************
heroku help # show list of commands with description
heroku version # show the gem version of heroku using
***********************User acount comands***********************************************************
heroku login # log in with your heroku credentials
heroku logout # clear local authentication credentials
***********************heroku application basic information *****************************************
heroku list # list your apps
heroku create [<name>] # create a new app
heroku info # show app info, like web url and gitrepo
heroku open # open the app in a web browser
heroku rename <newname> # rename the app
heroku destroy # destroy the app permanently
*********************** Application running information commands ************************************
heroku dynos <qty> # scale to qty web processes
heroku workers <qty> # scale to qty background processes
heroku console <command> # remotely execute a single console command
heroku console # start an interactive console to the remote app
heroku rake <command> # remotely execute a rake command
heroku ps # show process list
heroku restart # restart app processes
********************* Heroku addons related commands ************************************
heroku addons # list installed addons
heroku addons:info # list all available addons
heroku addons:add name [key=value] # install addon (with zero or more config vars)
heroku addons:remove name # uninstall an addon
heroku addons:clear # uninstall all addons
heroku addons:open name # open an addon's page in your browser
********************* Heroku configration commands *************************************************
heroku config # display the app's config vars (environment)
heroku config:add key=val [...] # add one or more config vars
heroku config:remove key [...] # remove one or more config vars
*********************** Heroku database commands **************************************************
heroku db:pull [<database_url>] # pull the app's database into a local database
heroku db:push [<database_url>] # push a local database into the app's remote database
************************ Heroku domain commands ***************************************************
heroku domains:add <domain> # add a custom domain name
heroku domains:remove <domain> # remove a custom domain name
heroku domains:clear # remove all custom domains
************************ Heroku access ssh key commands *********************************************
heroku keys # show your user's public keys
heroku keys:add [<path to keyfile>] # add a public key
heroku keys:remove <keyname> # remove a key by name (user@host)
heroku keys:clear # remove all keys
*********************** heroku secure shell commands ************************************************
heroku ssl:add <pem> <key> # add SSL cert to the app
heroku ssl:remove <domain> # removes SSL cert from the app domain
heroku ssl:clear # remove all SSL certs from the app
*********************** Heroku running logs or errors related commands ********************************
heroku logs # fetch recent log output for debugging
heroku logs:cron # fetch cron log output
*********************** Heroku maintenance enable or disable commands *********************************
heroku maintenance:on # put the app into maintenance mode
heroku maintenance:off # take the app out of maintenance mode
********************** Heroku app developers acount commands *****************************************
heroku sharing:add <email> # add a collaborator
heroku sharing:remove <email> # remove a collaborator
heroku sharing:transfer <email> # transfers the app ownership
*********************** Heroku commands for runtime data stack maintenance ***************************
heroku stack # show current stack and list of available stacks
heroku stack:migrate # prepare migration of this app to a new stack
********************** Heroku Plugins manage commands ***********************************************
heroku plugins # list installed plugins
heroku plugins:install <url> # install the plugin from the specified git url
heroku plugins:uninstall <url/name> # remove the specified plugin
********************** heroku log maintenance Logging (Expanded) commands ***************************
heroku logs --tail # realtime logs tail
heroku logs:drains # list syslog drains
heroku logs:drains add <url> # add a syslog drain
heroku logs:drains remove <url> # remove a syslog drain
heroku logs:drains clear # remove all syslog drains
*********************** heroku-postgresql commands ***********************************************
heroku pg:info [--db <DATABASE>] # show database status
heroku pg:reset --db <DATABASE> # delete all data in the specified database
heroku pg:promote --db <DATABASE> # set a database identifier to the DATABASE_URL
heroku pg:psql [--db <DATABASE>] # open a psql shell to the database (dedicated only)
heroku pg:ingress [--db <DATABASE>] # allow new connections from this IPto the database for one minute (dedicated only)
************************ heroku backups remote maintenance *****************************************
heroku pgbackups # list captured backups
heroku pgbackups:capture [<DB_ID>] # capture a backup from database ID (default: DATABASE_URL)
heroku pgbackups:url [<BACKUP_ID>] # get a temporary URL for a backup
heroku pgbackups:destroy <BACKUP_ID> # destroy a backup
heroku pgbackups:restore <BACKUP_ID> --db <DB_ID> # restore the database ID (default: DATABASE_URL) from a backup
heroku pgbackups:restore <url> --db <DB_ID> # restore the database ID (default: DATABASE_URL) from a URL
************************ heroku Releases of different versions *************************************
heroku releases # list releases
heroku releases:info <release> # detailed info for a release
heroku rollback [<release>] # roll back to a prior release
Comments
Post a Comment