This repository has been archived by the owner on Feb 28, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
readme.txt
273 lines (231 loc) · 10.2 KB
/
readme.txt
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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
JCliExtended: Joomla Framework & CMS Tool
PHP Cli app to help advanced administrators and developers run tasks from
command line interface
----------------------------- Requeriments -----------------------------
Joomla Plataform 11.1 (CMS Joomla 1.6)
PHP 5.3
----------------------------- How to use -----------------------------
@todo
----------------------------- Changelog -----------------------------
2011-08-06: 0.3alpha
2011-08-06: 0.1alpha
- Start
----------------------------- Objetives -----------------------------
-- New in 2011-08-11 --
For now, I'm thinking about to make the folowing logic on this Tool.
You can execute almost all codes with just one line, but, if you 'load'
one envoriment, you will need type less code, and maybe make less errors, but
still able to execute code outsite this envoriment if use the root command jcli
Take as example jcms class:
myjoomlasite.org:jcli> jcli load com_users password
myjoomlasite.org:jcli->com_users->password> -new -username fititnt -name "Emerso
n Rocha Luiz" -password "myPass"
New User created at myjoomlasite.org
id: 43
username: fititnt
name: Emerson Rocha Luiz
password: myPass
blocked:
#### Or just execute from root of site ####
myjoomlasite.org:jcli> jcms com_users password -reset -id 42 -password "myNewPas
s"
Are you sure that want to reset password of "Admin" to "myNewPass"
myjoomlasite.org:jcli>y
"Admin" password was reseted to "myNewPass"
-- New in 2011-08-11 --
-- Added before --
The news lines is now just for internal control, simplificated TDD proposes
***** General usage *****
* Make one tool that run its commands, and also emulate common commands of
shell access
* Create a few basic core functions of JCliX
* Make it really extensible
*
* Permit for user manual setup defalt params for each command
***** Interface *****
[General]
jcli>
[Inside of one Joomla CMS show one alias]
fititnt.org:jcli>
localhost/joomla18:jcli>
[Inside of one group Joomla CMS show one alias, to help with batch process]
mygroupofsites:jcli>
[Inside of one Joomla CMS, AND inside of one especific extension]
fititnt.org:com_content:jcli>
fititnt.org:tpl_beez5:jcli>
[Inside of one 3rd plugin]
jcli>jts-post>
jcli>jupdate>
jcli>akeebabackup>
[Inside of one Joomla CMS, AND inside of one especific extension]
fititnt.org:com_content:jcli>
fititnt.org:tpl_beez5:jcli>
[Maybe...]
jcli>jcd -l ../public_html/fititnt.org
JChanging Directory to /home/fititnt/public_html/fititnt.org
Joomla CMS Site found. Automating loading to JCliX
Alias: fititnt.org
CMS: Joomla! CMS 1.7.0 updated
Joomla-platform 11.1 updated
fititnt.org:jcli>jcli extensions -com
List of fititnt.org components
COMPONENT | Type | Status | Version | Developer
com_admin Core enabled 1.0 Joomla! Project
com_banners Core enabled 1.0 Joomla! Project
com_cache Core enabled 1.0 Joomla! Project
com_categories Core enabled 1.0 Joomla! Project
com_checkin Core enabled 1.0 Joomla! Project
com_config Core enabled 1.0 Joomla! Project
com_contact Core enabled 1.0 Joomla! Project
com_content Core enabled 1.0 Joomla! Project
com_cpanel Core enabled 1.0 Joomla! Project
com_installer Core enabled 1.0 Joomla! Project
com_languages Core enabled 1.0 Joomla! Project
com_login Core enabled 1.0 Joomla! Project
com_media Core enabled 1.0 Joomla! Project
com_menus Core enabled 1.0 Joomla! Project
com_messages Core enabled 1.0 Joomla! Project
com_modules Core enabled 1.0 Joomla! Project
com_newsfeeds Core enabled 1.0 Joomla! Project
com_plugins Core enabled 1.0 Joomla! Project
com_redirect Core enabled 1.0 Joomla! Project
com_search Core enabled 1.0 Joomla! Project
com_templates Core enabled 1.0 Joomla! Project
com_users Core enabled 1.0 Joomla! Project
com_weblinks Core enabled 1.0 Joomla! Project
fititnt.org:jcli>jcd com_users
Loading com_users from fititnt.org
Name: Component users
Version: 1.7.0 - Unknow
Author: Joomla! Project
Copyright: (C) 2005 - 2011 Open Source Matters. All rights reserved.
License: GNU General Public License version 2 or later; see LICENSE.txt
Notices:
- CheckVersion: Unknow if is updated. Use jvc or jversioncheck for check
- CheckVersion: No update site configured
- CheckSecutity: missing index.html
-> administrator/components/com_users/helpers
Warnings:
- CheckSecutity: missing index.html
-> administrator/components/com_users/helpers
fititnt.org:com_users:jcli>jbackup -file -database -bkpsfx -sfxtest
jbackup: NOTICE: param -bkpsfx is null. Ignoring
jbackup: WARNING: param -sfxtest does not exist. jbackup aborted
fititnt.org:com_users:jcli>jbackup -file -database -bkpsfx "-sfxtest"
jbackup: adicional params loaded from jcli config.ini
jbackup: backuping files from com_users at fititnt.org
jbackup: packing /administrator/components/com_users/
*
jbackup: packing /administrator/languages/en-GB/
en-GB.com_users.ini
en-GB.com_users.sys.ini
jbackup: packing /administrator/languages/pt-BR/
pt-BR.com_users.ini
pt-BR.com_users.sys.ini
jbackup: packing /administrator/languages/overrides/
pt-BR.com_users.ini
jbackup: packing /components/com_users/
*
jbackup: packing /languages/pt-BR/
pt-BR.com_users.ini
pt-BR.com_users.sys.ini
jbackup: packing /languages/overrides/
pt-BR.com_users.ini
jbackup: files backup done. Stored at /home/fititnt/.backups/fititnt.org/2011-08
-07_19-24/files/com_users-sfxtest.tar.gz
jbackup: backuping database from com_users at fititnt.org
jbackup: NOTICE: /administrator/components/com_users/users.xml does not have inf
ormation about database tables
jbackup: Force table discover?[y/n]
fititnt.org:com_users:jcli>jbackup>y
jbackup: jcli jdb -seachtable "%users%"
jbackup:jdb: bkp_users
jbackup:jdb: xpto_users
jbackup: Aprove backup tables bkp_users xpto_users? [y/n]
fititnt.org:com_users:jcli>jbackup>n
jbackup: Manual Choose table (y) or exit jbackup [y/n]
fititnt.org:com_users:jcli>jbackup>y
jbackup: Please save array of vars to variable "tables" and return to jbackup.
TIP: You can use save tojcli command "jcli jvarset varvalue"
TIP: You can return jcli command "jcli jreturn jdatabase"
TIP: You can return direct "jreturn varvalue"
fititnt.org:com_users:jcli>jbackup>jcli jvarset -t jbackup:tables ["xpto_users",
"xpto_usergroups"
jvarset: temporary set var "tables" at namespace jbackup with values
array{
"xpto_users",
"xpto_usergroups"
}
fititnt.org:com_users:jcli>jbackup>return tables;
jbackup: backuping database from com_users at fititnt.org
jbackup: packing xpto_users
jbackup: packing xpto_usergroups
jbackup: database backup done. Stored at /home/fititnt/.backups/fititnt.org/2011
-08-07_19-34/database/com_users-sfxtest.tar.gz
fititnt.org:com_users:jcli>jcd ..
fititnt.org:jcli>jcd com_admin
Loading com_admin from fititnt.org
Name: Component admin
Version: 1.7.0 - Unknow
Author: Joomla! Project
Copyright: (C) 2005 - 2011 Open Source Matters. All rights reserved.
License: GNU General Public License version 2 or later; see LICENSE.txt
Notices:
- CheckVersion: Unknow if is updated. Use jvc or jversioncheck for check
- CheckVersion: No update site configured
Warnings:
None
fititnt.org:com_admin:jcli>uninstall
Are your sure that want uninstall com_admin?[y/n]
fititnt.org:com_admin:jcli>y
jcli: uninstall command fail. Result
Sorry, you cannot unnistall a core component
fititnt.org:com_admin:jcli>sudo uninstall
jcli: jcli sudo unnistall fititnt.org:com_admin
jcli:unnistall: jrm -rf /administrator/components/com_admin
jcli:unnistall: jrm -rf /administrator/languages/en-GB/en-GB.com_admin.ini
jcli:unnistall: jrm -rf /administrator/languages/en-GB/en-GB.com_admin.sys.ini
jcli:unnistall: NOTICE: /administrator/components/com_admin/admin.xml does not h
ave information about database tables
jcli:unnistall: Force table discover?[y/n]
fititnt.org:com_admin:jcli>n
jcli:unnistall: unninstal complete.
jcli:unnistall: jcd ..
fititnt.org:jcli>clone com_banners
jcli:clone is not a jcli command
TIP:seach commands with "jcf name" or "jcommandfind name"
fititnt.org:jcli>jcf clone
jcli:jcf: Looking clone on jcli core
jcli:jcf: 1. -> jdev:clone
Tool for clone joomla extensions
jcli:jcf: Looking fork on 3rd functions
jcli:jcf: None
fititnt.org:jcli>jdev
Loading
JDev - Tool for developers
Version: 1.0
Author: Joomla! Project
Copyright: (C) 2005 - 2011 Open Source Matters. All rights reserved.
License: GNU General Public License version 2 or later; see LICENSE.txt
fititnt.org:jcli:jdev>clone com_banners -name "com_mybanners" -silent
fititnt.org:jcli:jdev>jcd ..
fititnt.org:jcli>jdb
fititnt.org:jcli:jdb>check
fititnt.org:jcli:jdb: Checking for mysql database errors
fititnt.org:jcli:jdb: MySQL tables OK
fititnt.org:jcli:jdb: Checking for Joomla CMS database consistency
fititnt.org:jcli:jdb: MySQL tables OK. [3 Notices hidden]
fititnt.org:jcli:jdb> backup -email "fititnt@gmail.com"
jbackup: backuping database from fititnt.org...
jbackup: database backup done. Stored at /home/fititnt/.backups/fititnt.org/2011
-08-07_19-52/database/fititnt.org-sfxtest.tar.gz
jmail: send -email "fititnt@gmail.com" -subject "Database backup of fititnt.org
at" -atrachment "/home/fititnt/.backups/fititnt.org/2011-08-07_19-52/database/fi
titnt.org-sfxtest.tar.gz"
jrm: "/home/fititnt/.backups/fititnt.org/2011-08-07_19-52/database/fititnt.org-s
fxtest.tar.gz"
jbackup: backup via email done.
fititnt.org:jcli:jdb>exit
***** Splash Screen *****
(...)
***** List of commands *****