bc36043e8f004e130df7dc2f4708e2313e400bff
- Author
- A2n <bouteiller.alan@gmail.com>
- Committer
- GitHub <noreply@github.com>
- Date
Message
Diff
This diff is truncated to protect this page.
1diff --git a/plugins/heroku-alias/README.md b/plugins/heroku-alias/README.md
2new file mode 100644
3index 0000000000000000000000000000000000000000..4b7b953fdf9f0064e10dba0f0310c37fe631bee6
4--- /dev/null
5+++ b/plugins/heroku-alias/README.md
6@@ -0,0 +1,127 @@
7+# heroku-alias
8+๐งฌ Full alias for heroku cli
9+
10+|๐ last maj|๐ก source|
11+|---|---|
12+|02/06/2020|[heroku cli doc](https://devcenter.heroku.com/articles/heroku-cli-commands)|
13+
14+# Alias list
15+
16+## general
17+| Alias | Command |
18+| ------------- | ------------- |
19+| h | heroku |
20+| hauto | heroku autocomplete $(echo $SHELL) |
21+| hl | heroku local |
22+
23+## config
24+| Alias | Command |
25+| ------------- | ------------- |
26+| hc | heroku config |
27+| hca | heroku config -a |
28+| hcr | heroku config -r |
29+| hcs | heroku config:set |
30+| hcu | heroku config:unset |
31+| hcfile | function hcfile bellow |
32+
33+```sh
34+hcfile() {
35+ echo " Which platform [-r/a name] ? "
36+ read platform
37+ echo " Which file ? "
38+ read file
39+ while read line;
40+ do heroku config:set "$platform" "$line";
41+ done < "$file"
42+}
43+```
44+
45+## apps and favorites
46+| Alias | Command |
47+| ------------- | ------------- |
48+| ha | heroku apps |
49+| hpop | heroku create |
50+| hkill | heroku apps:destroy |
51+| hlog | heroku apps:errors |
52+| hfav | heroku apps:favorites |
53+| hfava | heroku apps:favorites:add |
54+| hfavr | heroku apps:favorites:remove |
55+| hai | heroku apps:info |
56+| hair | heroku apps:info -r |
57+| haia | heroku apps:info -a |
58+
59+# auth
60+| Alias | Command |
61+| ------------- | ------------- |
62+| h2fa | heroku auth:2fa |
63+| h2far | heroku auth:2fa:disable |
64+
65+# access
66+| Alias | Command |
67+| ------------- | ------------- |
68+| hac | heroku access |
69+| hacr | heroku access -r |
70+| haca | heroku access -a |
71+| hadd | heroku access:add |
72+| hdel | heroku access:remove |
73+| hup | heroku access:update |
74+
75+## addons
76+| Alias | Command |
77+| ------------- | ------------- |
78+| hads | heroku addons -A |
79+| hada | heroku addons -a |
80+| hadr | heroku addons -r |
81+| hadat | heroku addons:attach |
82+| hadc | heroku addons:create |
83+| hadel | heroku addons:destroy |
84+| hadde | heroku addons:detach |
85+| hadoc | heroku addons:docs |
86+
87+## login
88+| Alias | Command |
89+| ------------- | ------------- |
90+| hin | heroku login |
91+| hout | heroku logout |
92+| hi | heroku login -i |
93+| hwho | heroku auth:whoami |
94+
95+## authorizations
96+| Alias | Command |
97+| ------------- | ------------- |
98+| hth | heroku authorizations |
99+| hthadd | heroku authorizations:create |
100+| hthif | heroku authorizations:info |
101+| hthdel | heroku authorizations:revoke |
102+| hthrot | heroku authorizations:rotate |
103+| hthup | heroku authorizations:update |
104+
105+## plugins
106diff --git a/plugins/heroku-alias/heroku.alias.sh b/plugins/heroku-alias/heroku.alias.sh
107new file mode 100644
108index 0000000000000000000000000000000000000000..7daf715b5676cfde595335c68398a6759e7a16a6
109--- /dev/null
110+++ b/plugins/heroku-alias/heroku.alias.sh
111@@ -0,0 +1,92 @@
112+# general
113+alias h='heroku'
114+alias hauto='heroku autocomplete $(echo $SHELL)'
115+alias hl='heroku local'
116+
117+# log
118+alias hg='heroku logs'
119+alias hgt='heroku log tail'
120+
121+# database
122+alias hpg='heroku pg'
123+alias hpsql='heroku pg:psql'
124+alias hpb='heroku pg:backups'
125+alias hpbc='heroku pg:backups:capture'
126+alias hpbd='heroku pg:backups:download'
127+alias hpbr='heroku pg:backups:restore'
128+
129+# config
130+alias hc='heroku config'
131+alias hca='heroku config -a'
132+alias hcr='heroku config -r'
133+alias hcs='heroku config:set'
134+alias hcu='heroku config:unset'
135+
136+# this function allow to load multi env set in a file
137+hcfile() {
138+ echo 'Which platform [-r/a name] ?'
139+ read platform
140+ echo 'Which file ?'
141+ read file
142+ while read line;
143+ do heroku config:set "$platform" "$line";
144+ done < "$file"
145+}
146+
147+# apps and favorites
148+alias ha='heroku apps'
149+alias hpop='heroku create'
150+alias hkill='heroku apps:destroy'
151+alias hlog='heroku apps:errors'
152+alias hfav='heroku apps:favorites'
153+alias hfava='heroku apps:favorites:add'
154+alias hfavr='heroku apps:favorites:remove'
155+alias hai='heroku apps:info'
156+alias hair='heroku apps:info -r'
157+alias haia='heroku apps:info -a'
158+
159+# auth
160+alias h2fa='heroku auth:2fa'
161+alias h2far='heroku auth:2fa:disable'
162+
163+# access
164+alias hac='heroku access'
165+alias hacr='heroku access -r'
166+alias haca='heroku access -a'
167+alias hadd='heroku access:add'
168+alias hdel='heroku access:remove'
169+alias hup='heroku access:update'
170+
171+# addons
172+alias hads='heroku addons -A'
173+alias hada='heroku addons -a'
174+alias hadr='heroku addons -r'
175+alias hadat='heroku addons:attach'
176+alias hadc='heroku addons:create'
177+alias hadel='heroku addons:destroy'
178+alias hadde='heroku addons:detach'
179+alias hadoc='heroku addons:docs'
180+
181+# login
182+alias hin='heroku login'
183+alias hout='heroku logout'
184+alias hi='heroku login -i'
185+alias hwho='heroku auth:whoami'
186+
187+# authorizations
188+alias hth='heroku authorizations'
189+alias hthadd='heroku authorizations:create'
190+alias hthif='heroku authorizations:info'
191+alias hthdel='heroku authorizations:revoke'
192+alias hthrot='heroku authorizations:rotate'
193+alias hthup='heroku authorizations:update'
194+
195+# plugins
196+alias hp='heroku plugins'
197+
198+# cert
199+alias hssl='heroku certs'
200+alias hssli='heroku certs:info'
201+alias hssla='heroku certs:add'
202+alias hsslu='heroku certs:update'
203+alias hsslr='heroku certs:remove'