-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathupdate-cli-tools.sh
More file actions
executable file
·50 lines (32 loc) · 1.15 KB
/
update-cli-tools.sh
File metadata and controls
executable file
·50 lines (32 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/bin/sh
TO=${TO:-$(pwd)}
mkdir -p $TO
(
cd $TO
# PHP tools
curl -o composer2.phar https://getcomposer.org/composer-stable.phar \
&& chmod +x composer2.phar \
&& ln -sf composer2.phar composer2
curl -o composer1.phar https://getcomposer.org/composer-1.phar \
&& chmod +x composer1.phar \
&& ln -sf composer1.phar composer1
# Magento 1.x tools
curl -o modman https://raw.githubusercontent.com/colinmollenhour/modman/master/modman \
&& chmod +x modman
curl -o n98-magerun.phar https://files.magerun.net/n98-magerun.phar \
&& chmod +x n98-magerun.phar \
&& ln -sf n98-magerun.phar n98-magerun
# Magento 2.x tools
curl -o n98-magerun2.phar https://files.magerun.net/n98-magerun2.phar \
&& chmod +x n98-magerun2.phar \
&& ln -sf n98-magerun2.phar n98-magerun2
# WordPress tools
curl -o wp-cli.phar https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar \
&& chmod +x wp-cli.phar \
&& ln -sf wp-cli.phar wp \
&& ln -sf wp-cli.phar wp-cli
# jq
curl -o jq -L https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64 \
&& chmod +x jq
tar --exclude=update.sh -czf ../cli-tools.tgz .
)