-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME-FILE
executable file
·104 lines (70 loc) · 4.89 KB
/
README-FILE
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
Golden Contact Computing - JRush
-------------------
About:
-----------------
This tool is a command line application for controlling Joomla.
Works with Joomla 1.5.x, Joomla 2.5.x and Joomla 3.x. As yet its untested with Joomla 1.6 or 1.7, but there's no reason
that it wouldn't work. If your site is in either of these versions, give it a whirl and let us know if you have any
problems with it.
JRush performs a silent bootstrap of the Joomla Framework, so all standard Joomla library classes are available.
Adding standard Joomla Commands involving these classes will be easy.
Installation
-----------------
To install jrush cli on your machine do the following. If you already have php5 and git installed skip line 1:
sudo apt-get install php5 git
git clone https://github.com/phpengine/jrush && sudo php jrush/install-silent
or...
git clone https://github.com/phpengine/jrush && sudo php jrush/install
(if you want to choose the install location)
... that's it, now the jrush command should be available at the command line for you.
Available Commands:
---------------------------------------
cache - Currently clearing the cache only works when using the file cache. This is fine for J1.5 as thats
the only cache method that works, but for Joomla 3.0, we'll be implementing a couple of extras soon to
clear whichever cache you're using.
- site-clear
Clear the site cache
example: jrush cache site-clear --config-file="/var/www/website/configuration.php"
- admin-clear
Clear the admin cache
example: jrush cache admin-clear --config-file="/var/www/website/configuration.php"
user - info
get info about a user
example: jrush user info --user-id="XX" --config-file="/var/www/website/configuration.php"
example: jrush user info --username="xxxx" --config-file="/var/www/website/configuration.php"
example: jrush user info --user-email="[email protected]" --config-file="/var/www/website/configuration.php"
- delete
delete a user. requires parameter --user-id, --user-email or --username
example: jrush user delete --user-id="XX" --config-file="/var/www/website/configuration.php"
example: jrush user delete --username="xxxx" --config-file="/var/www/website/configuration.php"
example: jrush user delete --user-email="[email protected]" --config-file="/var/www/website/configuration.php"
- add @todo
Add a new Joomla User
example: jrush install autopilot
jfeature - feature-install
Install the metadata for a database migration, fileset, or both from the GC Features component
example jrush jfeature feature-install --feature-file="/var/www/website/XXX_XXX.zip" --config-file="/var/www/website/configuration.php"
- feature-pull
perform a pull on an installed feature so it is integrated into the site, db and file changes executed.
example jrush jfeature feature-pull --pull-unique-time="XXX_XXX" --config-file="/var/www/website/configuration.php"
example jrush jfeature feature-pull --pull-id="XX" --config-file="/var/www/website/configuration.php"
- feature-push
perform a push on an installed feature so it is saved locally.
example jrush jfeature feature-push --profile-unique="XXX" --config-file="/var/www/website/configuration.php" --push-type="local"
- group-install
Install the metadata for a database migration, fileset, or both from the GC Features component
example jrush jfeature group-install --group-file="/var/www/website/XXXX.group" --config-file="/var/www/website/configuration.php"
- group-push
perform a push of a group profile into a locally saved file.
example jrush jfeature group-push --group-unique="XXXXXXXXXXXXXXXX" --config-file="/var/www/website/configuration.php"
- group-pull
perform a pull on all installed features in the specified group so they are integrated into the site, db and
file changes executed.
example jrush jfeature group-pull --pull-unique-time="XXX_XXX" --config-file="/var/www/website/configuration.php"
example jrush jfeature group-pull --pull-id="XX" --config-file="/var/www/website/configuration.php"
version - current
Report the info about the Major and Minor Version number of the installed Joomla.
example jrush version current --config-file="/var/www/website/configuration.php"
- available
List available versions of Joomla
example jrush version available --config-file="/var/www/website/configuration.php"