Skip to content

Commit 5c0fa95

Browse files
authored
Updated README with new commands.
1 parent e12739e commit 5c0fa95

File tree

1 file changed

+34
-11
lines changed

1 file changed

+34
-11
lines changed

README.md

Lines changed: 34 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,20 @@ e.g. https://raw.githubusercontent.com/dennisinteractive/drupal_console_commands
1616

1717
- drupal **site:new**
1818
Builds a new site using Drupal project as template https://github.com/dennisinteractive/drupal-project
19-
- drupal **site:checkout** *site-mame*
19+
- drupal **site:checkout** *site-mame* --
2020
Performs a git clone and checks out the specified branch
2121
- drupal **site:compose** *site-name*
2222
Runs *composer install*. Alternatively, it will run *composer update* if there is a composer.lock.
2323
- drupal **site:settings:db** *site-name*
2424
Creates *settings.db.php* in the *web/sites/default* folder. This file contains DB credentials and should not be committed.
25+
- drupal **site:settings:local** *site-name*
26+
Creates *settings.local.php* in the *web/sites/default* folder. This file contains local settings overrides and should not be committed.
27+
- drupal **site:settings:memcache** *site-name*
28+
Creates *settings.memcache.php* in the *web/sites/default* folder. This file contains Memcache configuration and should not be committed.
2529
- drupal **site:phpunit:setup** *site-name*
2630
Creates *phpunit.xml* in the root. This file contains PHPUnit configuration and should not be committed.
2731
- drupal **site:behat:setup** *site-name*
2832
Creates *behat.yml* in the *tests* folder. This file contains Behat configuration and should not be committed.
29-
- drupal **site:settings:memcache** *site-name*
30-
Creates *settings.memcache.php* in the *web/sites/default* folder. This file contains Memcache configuration and should not be committed.
3133
- drupal **site:db:import** *site-name*
3234
If a database dump is available, it will drop the current database and import the dump. The db-dump information comes from *~/.console/sites/site-name.yml*.
3335
The command will copy the dump from the original place to */tmp*. If you run the command again, it will only copy the file once the original has changed. This is very useful when working remotely on slow networks.
@@ -38,21 +40,42 @@ e.g. https://raw.githubusercontent.com/dennisinteractive/drupal_console_commands
3840
- drupal **site:grunt** *site-name*
3941
Runs grunt
4042
- drupal **site:build**
41-
A wrapper that will call all the commands below:
43+
A chain that will call all the commands below:
4244
- site:checkout
4345
- site:rebuild
4446
- drupal **site:rebuild**
45-
A wrapper that will call all the commands below:
47+
A chain that will call all the commands below:
48+
- site:compile
49+
- site:configure
50+
- site:db:import
51+
- site:construct
52+
- drupal **site:rebuild-prod**
53+
A chain that will call all the commands below:
54+
- site:compile
55+
- site:construct
56+
- drupal **site:compile**
57+
A chain that will call all the commands below:
4658
- site:compose
47-
- site:npm
48-
- site:grunt
59+
- 'exec' command that runs npm in supported directories.
60+
- 'exec' command that runs grunt in supported directories.
61+
- drupal **site:configure**
62+
A chain that will call all the commands below:
4963
- site:settings:db
64+
- site:settings:local
65+
- site:settings:memcache
66+
- drupal **site:construct**
67+
A chain that will call all the commands below:
68+
- 'exec' command that clears drupal caches.
69+
- 'exec' command that sets drush aliases.
70+
- 'exec' command that runs drupal updates.
71+
- 'exec' command that imports drupal config twice.
72+
- 'exec' command that clears drupal caches.
73+
- drupal **site:test**
74+
A chain that will call all the commands below:
5075
- site:phpunit:setup
5176
- site:behat:setup
52-
- site:settings:memcache
53-
- site:db:import
54-
- drush updb
55-
- drush cr
77+
- 'exec' command that runs behat tests.
78+
- 'exec' command that runs phpunit tests.
5679

5780
# Useful arguments and options
5881
- **-h** Show all the available arguments and options

0 commit comments

Comments
 (0)