forked from hechoendrupal/drupal-console
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.txt
124 lines (89 loc) · 3.98 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
Drupal Console
What is it?
-----------
The Drupal Console is a suite of tools run from a command line interface (CLI)
to generate boilerplate code for interact and debug with Drupal 8.
From the ground up, it has been built to utilize the same modern PHP
practices which were introduced in Drupal 8.
The Drupal Console makes use of the Symfony Console and other third party
components which allows you to automatically generate most of the code needed
for a Drupal 8 module. In addition, Drupal Console helps you interact with
your Drupal installation
The Latest Version
------------------
Details of the latest version can be found on the Drupal Console
project page under https://drupalconsole.com/.
Releases Page
------------------
All notable changes to this project will be documented in the
[releases page](/~https://github.com/hechoendrupal/DrupalConsole/releases)
Documentation
-------------
The most up-to-date documentation can be found at [bit.ly/console-book]
(http://bit.ly/console-book).
More information about using this project at the [official documentation]
(https://hechoendrupal.gitbooks.io/drupal-console/content/en/using/project.html).
Required PHP Version
--------------------
PHP 5.5.9 or higher is required to use the Drupal Console application.
Installation
------------
- Run this in your terminal to get the latest Console version:
curl https://drupalconsole.com/installer -L -o drupal.phar
- Or if you don't have curl:
php -r "readfile('https://drupalconsole.com/installer');" > drupal.phar
- Accessing from anywhere on your system:
mv drupal.phar /usr/local/bin/drupal
- Apply executable permissions on the downloaded file:
chmod +x /usr/local/bin/drupal
- Show all available commands.
drupal list
- Copy configuration files.
drupal init --override
- Update to the latest version.
drupal self-update
Support
------------
You can ask for support at Drupal Console gitter chat room
[http://bit.ly/console-support](http://bit.ly/console-support).
Getting The Project To Contribute
---------------------------------
- Fork
Fork your own copy of the [Console](/~https://github.com/hechoendrupal/DrupalConsole/fork)
repository to your account
- Clone
Get a copy of your recently cloned version of console in your machine.
$ git clone git@github.com:[your-git-user-here]/DrupalConsole.git
- Install dependencies
Now that you have cloned the project, you need to download dependencies via
Composer.
$ cd /path/to/DrupalConsole
$ composer install
- Running the project
After using Composer to download dependencies, you can run the project by
executing.
$ bin/drupal
- Create a symbolic link
You can run this command to easily access the Drupal Console from anywhere
on your system.
$ sudo ln -s /path/to/DrupalConsole/bin/drupal /usr/local/bin/drupal
NOTE: The name `drupal` is just an alias you can name it anything you like.
More information about how to contribute with this project at the [official documentation]
(https://hechoendrupal.gitbooks.io/drupal-console/content/en/contributing/new-features.html).
Enabling Autocomplete
---------------------
You can enable autocomplete by executing drupal init
Bash: Bash support depends on the http://bash-completion.alioth.debian.org/
project which can be installed with your package manager of choice. Then add
this line to your shell configuration file.
source "$HOME/.console/console.rc" 2>/dev/null
Zsh: Add this line to your shell configuration file.
source "$HOME/.console/console.rc" 2>/dev/null
Fish: Create a symbolic link
ln -s ~/.console/drupal.fish ~/.config/fish/completions/drupal.fish
Supporting Organizations
------------------------
- [FFW](https://ffwagency.com)
- [Indava](http://www.indava.com/)
- [Anexus](http://www.anexusit.com/)
> Drupal is a registered trademark of Dries Buytaert.