-
Notifications
You must be signed in to change notification settings - Fork 0
/
drush.html
346 lines (323 loc) · 14.2 KB
/
drush.html
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
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
<!DOCTYPE html>
<html>
<!-- Mirrored from overapi.com/drush by HTTrack Website Copier/3.x [XR&CO'2014], Thu, 03 Feb 2022 15:38:19 GMT -->
<!-- Added by HTTrack --><meta http-equiv="content-type" content="text/html;charset=utf-8" /><!-- /Added by HTTrack -->
<head>
<!--
* Author: OverAPI
-->
<meta charset="utf-8" />
<title>Drush Cheat Sheet | OverAPI.com</title>
<meta name="author" content="OverAPI" />
<meta name="description" content="OverAPI.com is a site collecting all the cheatsheets,all!" />
<meta name="keywords" content="development,cheatsheets," />
<link rel="stylesheet" href="static/css/default.css" type="text/css" />
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
<script type="text/javascript" src="static/js/jquery.1.7.min.js"></script>
<script type="text/javascript" src="static/js/jquery.masonry.min.js"></script>
<script type="text/javascript" src="static/js/jquery.quicksearch.js"></script>
<script type="text/javascript" src="static/js/main.js"></script>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-154846433-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-154846433-1');
</script>
<script data-ad-client="ca-pub-8625616776911349" async src="../pagead2.googlesyndication.com/pagead/js/f.txt"></script>
</head>
<body class="cheat-detail">
<div id="more-list-container">
<a href="javascript:void(0)">More »</a>
<ul id="nav-more-list">
<li><a href="git.html" title="Git Cheat Sheet">Git</a></li>
<li><a href="svn.html" title="SVN Cheat Sheet">SVN</a></li>
<li><a href="mysql.html" title="MySQL Cheat Sheet">MySQL</a></li>
<li><a href="regex.html" title="Regular Expression Cheat Sheet">Regex</a></li>
<li><a href="linux.html" title="Linux Command Line Cheat Sheet">Linux</a></li>
<li><a href="html.html" title="HTML Cheat Sheet">HTML</a></li>
<li><a href="html-dom.html" title="HTML-DOM Cheat Sheet">HTML-DOM</a></li>
<li><a href="mod_rewrite.html" title="mod_rewrite Cheat Sheet">mod_rewrite</a></li>
<li><a href="index.html#more" id="">Even More »</a></li>
</ul>
</div>
<div id="navbar">
<a id="logo" href="index.html">OverAPI.com</a>
<ul id="navlist" class="nav">
<li><a href="python.html" title="Python Cheat Sheet">Python</a></li>
<li><a href="jquery.html" title="jQuery Cheat Sheet">jQuery</a></li>
<li><a href="nodejs.html" title="NodeJS Cheat Sheet">NodeJS</a></li>
<li><a href="php.html" title="PHP Cheat Sheet">PHP</a></li>
<li><a href="java.html" title="Java Cheat Sheet">Java</a></li>
<li><a href="ruby.html" title="Ruby Cheat Sheet">Ruby</a></li>
<li><a href="javascript.html" title="Javascript Cheat Sheet">Javascript</a></li>
<li><a href="actionscript.html" title="ActionScript Cheat Sheet">ActionScript</a></li>
<li><a href="css.html" title="CSS Cheat Sheet">CSS</a></li>
<li><a href="express.html" title="Express Cheat Sheet">Express</a></li>
<li><a href="#more" id="nav-more">More »</a></li>
</ul>
</div>
<div style="position:fixed;right:105px;top:10px;z-index:200;">
<input type="" id="searchApi" placeholder="Search"/>
</div>
<div class="addthis_toolbox addthis_default_style" style="position:fixed;right:5px;top:17px;z-index:200;">
<a class="addthis_button_facebook"></a>
<a class="addthis_button_twitter"></a>
<a class="addthis_button_sinaweibo"></a>
<a class="addthis_button_compact"></a>
</div>
<div class="loading">
Loading...
</div>
<div class="content">
<div class="board">
<h2 class="board-title">Archive</h2>
<div class="board-card">
<ul>
<li>archive-dump (ard)(arb)</li>
<li class="tip">Backup code, files and DB into single file</li>
<li>archive-restore (arr)</li>
<li class="tip">Expand site archive into Drupal website</li>
</ul>
</div>
</div>
<div class="board">
<h2 class="board-title">Cache</h2>
<div class="board-card">
<ul>
<li>cache-clear (cc)</li>
<li class="tip">Clear Drupal caches</li>
<li>cache-get (cg)</li>
<li class="tip">Fetch cached object</li>
<li>cache-rebuild (cr)</li>
<li class="tip">Rebuild Drupal 8 site and clear all its caches</li>
<li>cache-set (cs)</li>
<li class="tip">Cache JSON object</li>
</ul>
</div>
</div>
<div class="board">
<h2 class="board-title">Core</h2>
<div class="board-card">
<ul>
<li>core-cli (php)</li>
<li class="tip">Open interactive PHP shell</li>
<li>core-config (conf)</li>
<li class="tip">Edit drushrc and settings.php</li>
<li>core-cron (cron)</li>
<li class="tip">Run all cron hooks</li>
<li>core-execute (exec)</li>
<li class="tip">Execute shell command</li>
<li>core-quick-drupal (qd)</li>
<li class="tip">Create minimal Drupal site</li>
<li>core-requirements (rq)</li>
<li class="tip">Inspect Drupal installation</li>
<li>core-rsync (rsync)</li>
<li class="tip">Rsync Drupal files with server</li>
<li>core-status (st)</li>
<li class="tip">Print site status report</li>
<li>drupal-directory (dd)</li>
<li class="tip">Print path to module/theme</li>
<li>help</li>
<li class="tip">Print drush cheat sheet</li>
<li>php-eval (ev)(eval)</li>
<li class="tip">Evaluate PHP after bootstrap</li>
<li>php-script (scr)</li>
<li class="tip">Run PHP scripts</li>
<li>updatedb (updb)</li>
<li class="tip">Apply required DB updates</li>
<li>updatedb-status (updbst)</li>
<li class="tip">List any pending DB updates</li>
<li>version</li>
<li class="tip">Show drush version</li>
</ul>
</div>
</div>
<div class="board">
<h2 class="board-title">Field</h2>
<div class="board-card">
<ul>
<li>field-clone</li>
<li class="tip">Clone field and all its instances</li>
<li>field-create</li>
<li class="tip">Create fields and instances</li>
<li>field-delete</li>
<li class="tip">Delete a field and instances</li>
<li>field-info</li>
<li class="tip">View information about fields</li>
<li>field-update</li>
<li class="tip">Return URL for field editing</li>
</ul>
</div>
</div>
<div class="board">
<h2 class="board-title">Make</h2>
<div class="board-card">
<ul>
<li>make</li>
<li class="tip">Create Drupal codebase from a makefile</li>
<li>make-generate</li>
<li class="tip">Generate makefile from current Drupal site</li>
</ul>
</div>
</div>
<div class="board">
<h2 class="board-title">Project management</h2>
<div class="board-card">
<ul>
<li>pm-disable (dis)</li>
<li class="tip">Disable one or more extensions</li>
<li>pm-download (dl)</li>
<li class="tip">Download modules or themes</li>
<li>pm-enable (en)</li>
<li class="tip">Enable one or more extensions</li>
<li>pm-info (pmi)</li>
<li class="tip">Show extension(s) info</li>
<li>pm-list (pml)</li>
<li class="tip">Show available extensions</li>
<li>pm-refresh (rf)</li>
<li class="tip">Refresh update status info</li>
<li>pm-releasenotes (rln)</li>
<li class="tip">Print project release notes</li>
<li>pm-releases (rl)</li>
<li class="tip">Print project release information</li>
<li>pm-uninstall (pmu)</li>
<li class="tip">Uninstall one or more modules</li>
<li>pm-update (up)</li>
<li class="tip">Same as pm-updatecode + <br>updatedb</li>
<li>pm-updatecode (upc)</li>
<li class="tip">Update Drupal core and contrib projects to latest recommended release</li>
<li>pm-updatestatus (ups)</li>
<li class="tip">Show list of available updates</li>
</ul>
</div>
</div>
<div class="board">
<h2 class="board-title">Role</h2>
<div class="board-card">
<ul>
<li>role-add-perm (rap)</li>
<li class="tip">Grant a permission to a role</li>
<li>role-create (rcrt)</li>
<li class="tip">Create new role</li>
<li>role-delete (rdel)</li>
<li class="tip">Delete a role</li>
<li>role-list (rls)</li>
<li class="tip">Display all defined roles</li>
<li>role-remove-perm (rmp)</li>
<li class="tip">Remove permission from a role</li>
</ul>
</div>
</div>
<div class="board">
<h2 class="board-title">Search</h2>
<div class="board-card">
<ul>
<li>search-index</li>
<li class="tip">Index remaining search items</li>
<li>search-reindex</li>
<li class="tip">Force search index to be rebuilt</li>
<li>search-status</li>
<li class="tip">Show how many items pending to be indexed</li>
</ul>
</div>
</div>
<div class="board">
<h2 class="board-title">Sitealias</h2>
<div class="board-card">
<ul>
<li>shell-alias (sha)</li>
<li class="tip">Print all known shell aliases</li>
<li>site-alias (sa)</li>
<li class="tip">Print known site aliases</li>
<li>site-set (use)</li>
<li class="tip">Set site alias for the session</li>
</ul>
</div>
</div>
<div class="board">
<h2 class="board-title">Sql</h2>
<div class="board-card">
<ul>
<li>sql-cli (sqlc)</li>
<li class="tip">Open SQL client using Drupal's credentials</li>
<li>sql-connect</li>
<li class="tip">String for connecting to the DB</li>
<li>sql-create</li>
<li class="tip">Create a database</li>
<li>sql-drop</li>
<li class="tip">Drop all tables in database</li>
<li>sql-dump</li>
<li class="tip">Exports Drupal DB as SQL</li>
<li>sql-query (sqlq)</li>
<li class="tip">Execute a query against the DB</li>
<li>sql-sanitize (sqlsan)</li>
<li class="tip">Run sanitization operations</li>
<li>sql-sync</li>
<li class="tip">Copy and import source DB <br>to target DB via rsync</li>
</ul>
</div>
</div>
<div class="board">
<h2 class="board-title">User</h2>
<div class="board-card">
<ul>
<li>user-add-role (urol)</li>
<li class="tip">Add role to specified user(s)</li>
<li>user-block (ublk)</li>
<li class="tip">Block specified user(s)</li>
<li>user-cancel (ucan)</li>
<li class="tip">Cancel user account</li>
<li>user-create (ucrt)</li>
<li class="tip">Create user account</li>
<li>user-information (uinf)</li>
<li class="tip">Print info about specified user</li>
<li>user-login (uli)</li>
<li class="tip">Display one-time login link</li>
<li>user-password (upwd)</li>
<li class="tip">Set password for specified user</li>
<li>user-remove-role (urrol)</li>
<li class="tip">Remove role from user account</li>
<li>user-unblock (uublk)</li>
<li class="tip">Unblock specified user(s)</li>
</ul>
</div>
</div>
<div class="board">
<h2 class="board-title">Variable</h2>
<div class="board-card">
<ul>
<li>variable-delete (vdel)</li>
<li class="tip">Delete a variable</li>
<li>variable-get (vget)</li>
<li class="tip">Get site variables and values</li>
<li>variable-set (vset)</li>
<li class="tip">Set a variable</li>
</ul>
</div>
</div>
<div class="board">
<h2 class="board-title">Watchdog</h2>
<div class="board-card">
<ul>
<li>watchdog-delete (wd-del)</li>
<li class="tip">Delete watchdog messages</li>
<li>watchdog-list (wd-list)</li>
<li class="tip">Show message types and severity levels</li>
<li>watchdog-show (ws)</li>
<li class="tip">Show watchdog messages</li>
</ul>
</div>
</div>
</div>
<div id="ad" class="board hide">
</div>
<script type="text/javascript">
$('.content').append($('#ad'));
$('#ad').removeClass('hide');
</script>
<script type="text/javascript" src="../s7.addthis.com/js/250/addthis_widget.js#pubid=xa-4fddf49419e0facd"></script>
</body>
<!-- Mirrored from overapi.com/drush by HTTrack Website Copier/3.x [XR&CO'2014], Thu, 03 Feb 2022 15:38:19 GMT -->
</html>