heroku-alias.plugin.zsh
2245 bytes
1# general
2alias h='heroku'
3alias hauto='heroku autocomplete $(echo $SHELL)'
4alias hl='heroku local'
5
6# log
7alias hg='heroku logs'
8alias hgt='heroku log tail'
9
10# database
11alias hpg='heroku pg'
12alias hpsql='heroku pg:psql'
13alias hpb='heroku pg:backups'
14alias hpbc='heroku pg:backups:capture'
15alias hpbd='heroku pg:backups:download'
16alias hpbr='heroku pg:backups:restore'
17
18# config
19alias hc='heroku config'
20alias hca='heroku config -a'
21alias hcr='heroku config -r'
22alias hcs='heroku config:set'
23alias hcu='heroku config:unset'
24
25# this function allow to load multi env set in a file
26hcfile() {
27 echo 'Which platform [-r/a name] ?'
28 read platform
29 echo 'Which file ?'
30 read file
31 while read line;
32 do heroku config:set "$platform" "$line";
33 done < "$file"
34}
35
36# apps and favorites
37alias ha='heroku apps'
38alias hpop='heroku create'
39alias hkill='heroku apps:destroy'
40alias hlog='heroku apps:errors'
41alias hfav='heroku apps:favorites'
42alias hfava='heroku apps:favorites:add'
43alias hfavr='heroku apps:favorites:remove'
44alias hai='heroku apps:info'
45alias hair='heroku apps:info -r'
46alias haia='heroku apps:info -a'
47
48# auth
49alias h2fa='heroku auth:2fa'
50alias h2far='heroku auth:2fa:disable'
51
52# access
53alias hac='heroku access'
54alias hacr='heroku access -r'
55alias haca='heroku access -a'
56alias hadd='heroku access:add'
57alias hdel='heroku access:remove'
58alias hup='heroku access:update'
59
60# addons
61alias hads='heroku addons -A'
62alias hada='heroku addons -a'
63alias hadr='heroku addons -r'
64alias hadat='heroku addons:attach'
65alias hadc='heroku addons:create'
66alias hadel='heroku addons:destroy'
67alias hadde='heroku addons:detach'
68alias hadoc='heroku addons:docs'
69
70# login
71alias hin='heroku login'
72alias hout='heroku logout'
73alias hi='heroku login -i'
74alias hwho='heroku auth:whoami'
75
76# authorizations
77alias hth='heroku authorizations'
78alias hthadd='heroku authorizations:create'
79alias hthif='heroku authorizations:info'
80alias hthdel='heroku authorizations:revoke'
81alias hthrot='heroku authorizations:rotate'
82alias hthup='heroku authorizations:update'
83
84# plugins
85alias hp='heroku plugins'
86
87# cert
88alias hssl='heroku certs'
89alias hssli='heroku certs:info'
90alias hssla='heroku certs:add'
91alias hsslu='heroku certs:update'
92alias hsslr='heroku certs:remove'