parent
ff62d39f02
commit
fccaaf2fc6
2 changed files with 125 additions and 112 deletions
@ -1,127 +1,140 @@ |
|||||||
# heroku-alias |
# heroku-alias |
||||||
🧬 Full alias for heroku cli |
|
||||||
|
|
||||||
|🚀 last maj|📡 source| |
Full alias list for Heroku CLI. |
||||||
|---|---| |
|
||||||
|02/06/2020|[heroku cli doc](https://devcenter.heroku.com/articles/heroku-cli-commands)| |
|
||||||
|
|
||||||
# Alias list |
To use it, add `heroku-alias` to the plugins array in your zshrc file: |
||||||
|
|
||||||
## general |
```zsh |
||||||
| Alias | Command | |
plugins=(... heroku-alias) |
||||||
| ------------- | ------------- | |
|
||||||
| h | heroku | |
|
||||||
| hauto | heroku autocomplete $(echo $SHELL) | |
|
||||||
| hl | heroku local | |
|
||||||
|
|
||||||
## config |
|
||||||
| Alias | Command | |
|
||||||
| ------------- | ------------- | |
|
||||||
| hc | heroku config | |
|
||||||
| hca | heroku config -a | |
|
||||||
| hcr | heroku config -r | |
|
||||||
| hcs | heroku config:set | |
|
||||||
| hcu | heroku config:unset | |
|
||||||
| hcfile | function hcfile bellow | |
|
||||||
|
|
||||||
```sh |
|
||||||
hcfile() { |
|
||||||
echo " Which platform [-r/a name] ? " |
|
||||||
read platform |
|
||||||
echo " Which file ? " |
|
||||||
read file |
|
||||||
while read line; |
|
||||||
do heroku config:set "$platform" "$line"; |
|
||||||
done < "$file" |
|
||||||
} |
|
||||||
``` |
``` |
||||||
|
|
||||||
## apps and favorites |
## Requirements |
||||||
| Alias | Command | |
|
||||||
| ------------- | ------------- | |
- [Heroku CLI](https://devcenter.heroku.com/articles/heroku-cli) |
||||||
| ha | heroku apps | |
|
||||||
| hpop | heroku create | |
| 🚀 last maj | 📡 source | |
||||||
| hkill | heroku apps:destroy | |
| ---------- | --------------------------------------------------------------------------- | |
||||||
| hlog | heroku apps:errors | |
| 02/06/2020 | [heroku cli doc](https://devcenter.heroku.com/articles/heroku-cli-commands) | |
||||||
| hfav | heroku apps:favorites | |
|
||||||
| hfava | heroku apps:favorites:add | |
## Aliases |
||||||
|
|
||||||
|
### general |
||||||
|
|
||||||
|
| Alias | Command | |
||||||
|
| ----- | ---------------------------------- | |
||||||
|
| h | heroku | |
||||||
|
| hauto | heroku autocomplete $(echo $SHELL) | |
||||||
|
| hl | heroku local | |
||||||
|
|
||||||
|
### config |
||||||
|
|
||||||
|
| Alias | Command | |
||||||
|
| ------ | ---------------------- | |
||||||
|
| hc | heroku config | |
||||||
|
| hca | heroku config -a | |
||||||
|
| hcr | heroku config -r | |
||||||
|
| hcs | heroku config:set | |
||||||
|
| hcu | heroku config:unset | |
||||||
|
|
||||||
|
Also, you can use the `hcfile` function to set multiple config variables from a file, |
||||||
|
which asks you for a platform and a config file to read the configuration from. |
||||||
|
|
||||||
|
### apps and favorites |
||||||
|
|
||||||
|
| Alias | Command | |
||||||
|
| ----- | ---------------------------- | |
||||||
|
| ha | heroku apps | |
||||||
|
| hpop | heroku create | |
||||||
|
| hkill | heroku apps:destroy | |
||||||
|
| hlog | heroku apps:errors | |
||||||
|
| hfav | heroku apps:favorites | |
||||||
|
| hfava | heroku apps:favorites:add | |
||||||
| hfavr | heroku apps:favorites:remove | |
| hfavr | heroku apps:favorites:remove | |
||||||
| hai | heroku apps:info | |
| hai | heroku apps:info | |
||||||
| hair | heroku apps:info -r | |
| hair | heroku apps:info -r | |
||||||
| haia | heroku apps:info -a | |
| haia | heroku apps:info -a | |
||||||
|
|
||||||
# auth |
## auth |
||||||
| Alias | Command | |
|
||||||
| ------------- | ------------- | |
| Alias | Command | |
||||||
| h2fa | heroku auth:2fa | |
| ----- | ----------------------- | |
||||||
|
| h2fa | heroku auth:2fa | |
||||||
| h2far | heroku auth:2fa:disable | |
| h2far | heroku auth:2fa:disable | |
||||||
|
|
||||||
# access |
## access |
||||||
| Alias | Command | |
|
||||||
| ------------- | ------------- | |
| Alias | Command | |
||||||
| hac | heroku access | |
| ----- | -------------------- | |
||||||
| hacr | heroku access -r | |
| hac | heroku access | |
||||||
| haca | heroku access -a | |
| hacr | heroku access -r | |
||||||
| hadd | heroku access:add | |
| haca | heroku access -a | |
||||||
| hdel | heroku access:remove | |
| hadd | heroku access:add | |
||||||
| hup | heroku access:update | |
| hdel | heroku access:remove | |
||||||
|
| hup | heroku access:update | |
||||||
## addons |
|
||||||
| Alias | Command | |
### addons |
||||||
| ------------- | ------------- | |
|
||||||
| hads | heroku addons -A | |
| Alias | Command | |
||||||
| hada | heroku addons -a | |
| ----- | --------------------- | |
||||||
| hadr | heroku addons -r | |
| hads | heroku addons -A | |
||||||
| hadat | heroku addons:attach | |
| hada | heroku addons -a | |
||||||
| hadc | heroku addons:create | |
| hadr | heroku addons -r | |
||||||
|
| hadat | heroku addons:attach | |
||||||
|
| hadc | heroku addons:create | |
||||||
| hadel | heroku addons:destroy | |
| hadel | heroku addons:destroy | |
||||||
| hadde | heroku addons:detach | |
| hadde | heroku addons:detach | |
||||||
| hadoc | heroku addons:docs | |
| hadoc | heroku addons:docs | |
||||||
|
|
||||||
## login |
### login |
||||||
| Alias | Command | |
|
||||||
| ------------- | ------------- | |
| Alias | Command | |
||||||
| hin | heroku login | |
| ----- | ------------------ | |
||||||
| hout | heroku logout | |
| hin | heroku login | |
||||||
| hi | heroku login -i | |
| hout | heroku logout | |
||||||
| hwho | heroku auth:whoami | |
| hi | heroku login -i | |
||||||
|
| hwho | heroku auth:whoami | |
||||||
## authorizations |
|
||||||
| Alias | Command | |
### authorizations |
||||||
| ------------- | ------------- | |
|
||||||
| hth | heroku authorizations | |
| Alias | Command | |
||||||
|
| ------ | ---------------------------- | |
||||||
|
| hth | heroku authorizations | |
||||||
| hthadd | heroku authorizations:create | |
| hthadd | heroku authorizations:create | |
||||||
| hthif | heroku authorizations:info | |
| hthif | heroku authorizations:info | |
||||||
| hthdel | heroku authorizations:revoke | |
| hthdel | heroku authorizations:revoke | |
||||||
| hthrot | heroku authorizations:rotate | |
| hthrot | heroku authorizations:rotate | |
||||||
| hthup | heroku authorizations:update | |
| hthup | heroku authorizations:update | |
||||||
|
|
||||||
## plugins |
### plugins |
||||||
| Alias | Command | |
|
||||||
| ------------- | ------------- | |
| Alias | Command | |
||||||
| hp | heroku plugins | |
| ----- | -------------- | |
||||||
|
| hp | heroku plugins | |
||||||
# log |
|
||||||
| Alias | Command | |
### log |
||||||
| ------------- | ------------- | |
|
||||||
|hg | heroku logs| |
| Alias | Command | |
||||||
| hgt | heroku log tail | |
| ----- | --------------- | |
||||||
|
| hg | heroku logs | |
||||||
# database |
| hgt | heroku log tail | |
||||||
| Alias | Command | |
|
||||||
| ------------- | ------------- | |
### database |
||||||
| hpg | heroku pg | |
|
||||||
| hpsql | heroku pg:psql | |
| Alias | Command | |
||||||
| hpb | heroku pg:backups | |
| ----- | -------------------------- | |
||||||
| hpbc | heroku pg:backups:capture | |
| hpg | heroku pg | |
||||||
| hpbd | heroku pg:backups:download | |
| hpsql | heroku pg:psql | |
||||||
| hpbr | heroku pg:backups:restore | |
| hpb | heroku pg:backups | |
||||||
|
| hpbc | heroku pg:backups:capture | |
||||||
# certs |
| hpbd | heroku pg:backups:download | |
||||||
| Alias | Command | |
| hpbr | heroku pg:backups:restore | |
||||||
| ------------- | ------------- | |
|
||||||
| hssl | heroku certs | |
### certs |
||||||
| hssli | heroku certs:info | |
|
||||||
| hssla | heroku certs:add | |
| Alias | Command | |
||||||
|
| ----- | ------------------- | |
||||||
|
| hssl | heroku certs | |
||||||
|
| hssli | heroku certs:info | |
||||||
|
| hssla | heroku certs:add | |
||||||
| hsslu | heroku certs:update | |
| hsslu | heroku certs:update | |
||||||
| hsslr | heroku certs:remove | |
| hsslr | heroku certs:remove | |
||||||
|
|||||||
Loading…
Reference in new issue