snipt

Ctrl+h for KB shortcuts

Text only

Drush change password of user

drush upwd <username> --password=<password>
https://snipt.net/embed/6eda162bbba949390e710e96bb022bfe/
/raw/6eda162bbba949390e710e96bb022bfe/
6eda162bbba949390e710e96bb022bfe
text
Text only
1
2019-06-19T23:48:17
True
False
False
Apr 09, 2014 at 12:10 PM
/api/public/snipt/128696/
drush-change-password-of-user
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>drush upwd &lt;username&gt; --password=&lt;password&gt; </span></pre></div> </td></tr></table>
drush

Text only

Untitled

https://github.com/drush-ops/drush
https://snipt.net/embed/c1d1f43d9f0c95b38b8883b06b68278a/
/raw/c1d1f43d9f0c95b38b8883b06b68278a/
c1d1f43d9f0c95b38b8883b06b68278a
text
Text only
1
2019-06-18T05:30:17
True
False
False
Apr 07, 2014 at 05:57 PM
/api/public/snipt/128194/
-16811
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>https://github.com/drush-ops/drush </span></pre></div> </td></tr></table>
drush

Text only

Drush - create admin one time login link

drush uli
https://snipt.net/embed/1aeca05879833fc88eaaad46af55ea36/
/raw/1aeca05879833fc88eaaad46af55ea36/
1aeca05879833fc88eaaad46af55ea36
text
Text only
1
2019-06-18T18:02:31
True
False
False
Feb 12, 2014 at 08:23 AM
/api/public/snipt/113017/
drush-create-admin-one-time-login-link
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>drush uli </span></pre></div> </td></tr></table>
drush

Text only

Drush command to clear the flood table

drush sqlq 'delete from flood'
https://snipt.net/embed/321059cd00c51eedc47c81039f9ff3d4/
/raw/321059cd00c51eedc47c81039f9ff3d4/
321059cd00c51eedc47c81039f9ff3d4
text
Text only
1
2019-06-15T09:36:57
True
False
False
/api/public/snipt/97903/
drush-command-to-clear-the-flood-table
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>drush sqlq &#39;delete from flood&#39; </span></pre></div> </td></tr></table>
drupal7, drush

Bash Session

Install Drupal Drush in Webfaction

1
2
3
4
5
cd ~
wget http://ftp.drupal.org/files/projects/drush-7.x-5.9.tar.gz
tar zxvf drush-7.x-5.9.tar.gz
ln -s ~/drush/drush ~/bin/drush
rm drush-7.x-5.9.tar.gz
https://snipt.net/embed/f32b14c4665e3b47db22cf84950ef8cb/
/raw/f32b14c4665e3b47db22cf84950ef8cb/
f32b14c4665e3b47db22cf84950ef8cb
shell-session
Bash Session
5
2019-06-05T06:18:21
True
False
False
/api/public/snipt/73008/
install-drupal-drush-in-webfaction
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a> <a href="#L-5">5</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="go">cd ~</span> </span><span id="L-2"><a name="L-2"></a><span class="go">wget http://ftp.drupal.org/files/projects/drush-7.x-5.9.tar.gz</span> </span><span id="L-3"><a name="L-3"></a><span class="go">tar zxvf drush-7.x-5.9.tar.gz</span> </span><span id="L-4"><a name="L-4"></a><span class="go">ln -s ~/drush/drush ~/bin/drush</span> </span><span id="L-5"><a name="L-5"></a><span class="go">rm drush-7.x-5.9.tar.gz</span> </span></pre></div> </td></tr></table>
drupal, drush, webfaction

Bash

drush - sync DB from stager to local

drush sql-sync @<alias.stager> @<alias.local> --no-ordered-dump
https://snipt.net/embed/23c602ff333037653ca185494fe85190/
/raw/23c602ff333037653ca185494fe85190/
23c602ff333037653ca185494fe85190
bash
Bash
1
2019-06-20T04:24:04
True
False
False
/api/public/snipt/70191/
drush-sync-db-from-stager-to-local
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>drush sql-sync @&lt;alias.stager&gt; @&lt;alias.local&gt; --no-ordered-dump </span></pre></div> </td></tr></table>
bash, drush, terminal