You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+34-11Lines changed: 34 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,18 +16,20 @@ e.g. https://raw.githubusercontent.com/dennisinteractive/drupal_console_commands
16
16
17
17
- drupal **site:new**
18
18
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* --
20
20
Performs a git clone and checks out the specified branch
21
21
- drupal **site:compose***site-name*
22
22
Runs *composer install*. Alternatively, it will run *composer update* if there is a composer.lock.
23
23
- drupal **site:settings:db***site-name*
24
24
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.
25
29
- drupal **site:phpunit:setup***site-name*
26
30
Creates *phpunit.xml* in the root. This file contains PHPUnit configuration and should not be committed.
27
31
- drupal **site:behat:setup***site-name*
28
32
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.
31
33
- drupal **site:db:import***site-name*
32
34
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*.
33
35
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
38
40
- drupal **site:grunt***site-name*
39
41
Runs grunt
40
42
- drupal **site:build**
41
-
A wrapper that will call all the commands below:
43
+
A chain that will call all the commands below:
42
44
- site:checkout
43
45
- site:rebuild
44
46
- 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:
46
58
- 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:
49
63
- 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:
50
75
- site:phpunit:setup
51
76
- 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.
56
79
57
80
# Useful arguments and options
58
81
-**-h** Show all the available arguments and options
0 commit comments