Skip to content

Commit b53e1d5

Browse files
authored
[console] Update readme & rollback comspoer. (#2890)
1 parent c5478a1 commit b53e1d5

3 files changed

Lines changed: 35 additions & 44 deletions

File tree

README.md

Lines changed: 16 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
- [Required PHP version](#required-php-version)
77
- [Drupal Console documentation](#documentation)
88
- [Download as new dependency](#download-as-new-dependency)
9-
- [Fix download the latest version](#fix-download-the-latest-version)
109
- [Download using DrupalComposer](#download-using-drupalcomposer)
10+
- [Update DrupalConsole](#update-drupalconsole)
1111
- [Install Drupal Console Launcher](#install-drupal-console-launcher)
1212
- [Run Drupal Console](#running-drupal-console)
1313
- [Supporting organizations](#supporting-organizations)
@@ -24,7 +24,7 @@ Drupal Console
2424
[![Software License](https://img.shields.io/badge/license-GPL%202.0+-blue.svg)](https://packagist.org/packages/drupal/console)
2525
[![SensioLabsInsight](https://insight.sensiolabs.com/projects/d0f089ff-a6e9-4ba4-b353-cb68173c7d90/mini.png)](https://insight.sensiolabs.com/projects/d0f089ff-a6e9-4ba4-b353-cb68173c7d90)
2626

27-
The Drupal Console is a CLI tool to generate boilerplate code, interact and debug Drupal 8.
27+
The Drupal CLI. A tool to generate boilerplate code, interact with and debug Drupal.
2828

2929
## Latest Version
3030
Details of the latest version can be found on the Drupal Console project page under https://drupalconsole.com/.
@@ -52,15 +52,6 @@ composer require drupal/console:~1.0 \
5252
--sort-packages
5353
```
5454

55-
## Fix download the latest version
56-
57-
Drupal 8 include some outdated libraries of Symfony 2.7.x, as result you get an old release of Drupal Console.
58-
59-
To fix that, execute the following command and you will get the latest release of Drupal Console.
60-
```
61-
composer update drupal/console --with-dependencies
62-
```
63-
6455
## Download using DrupalComposer
6556
```
6657
composer create-project \
@@ -71,6 +62,12 @@ drupal8.dev \
7162
--no-interaction
7263
```
7364

65+
## Update DrupalConsole
66+
67+
```
68+
composer update drupal/console --with-dependencies
69+
```
70+
7471
## Install Drupal Console Launcher
7572
```
7673
# Run this in your terminal to get the latest version:
@@ -81,31 +78,27 @@ php -r "readfile('https://drupalconsole.com/installer');" > drupal.phar
8178
8279
# Accessing from anywhere on your system:
8380
mv drupal.phar /usr/local/bin/drupal
84-
85-
# Apply executable permissions on the downloaded file:
86-
chmod +x /usr/local/bin/drupal
87-
88-
# Copy configuration files.
89-
drupal init --override
90-
91-
# Check and validate system requirements
92-
drupal check
9381
```
9482

9583
## Run Drupal Console
84+
Using the DrupalConsole Launcher
85+
```
86+
drupal
87+
```
88+
> NOTE: If using a DrupalComposer make sure you execute the `init` command and answer yest to ` Copy at current directory console/config.yml? (yes/no) [yes]:` question.
89+
9690
We highly recommend you to install the global executable, but if is not installed, then you can run DrupalConsole by:
9791

9892
Using default Drupal + DrupalConsole
9993
```
10094
vendor/bin/drupal
10195
```
102-
Using DrupalComposer
103-
Change directory `web`, `docroot` or any other.
96+
97+
Using DrupalComposer you can also change directory `web`, `docroot` and
10498
```
10599
../vendor/bin/drupal
106100
```
107101

108-
109102
## Drupal Console Support
110103
You can ask for support at Drupal Console gitter chat room [http://bit.ly/console-support](http://bit.ly/console-support).
111104

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "drupal/console",
3-
"description": "The Drupal Console is a CLI tool to generate boilerplate code, interact and debug Drupal 8.",
3+
"description": "The Drupal CLI. A tool to generate boilerplate code, interact with and debug Drupal.",
44
"keywords": ["Drupal", "Console", "Development", "Symfony"],
55
"homepage": "http://drupalconsole.com/",
66
"type": "project",
@@ -39,7 +39,7 @@
3939
"php": "^5.5.9 || ^7.0",
4040
"alchemy/zippy": "0.3.5",
4141
"composer/installers": "~1.0",
42-
"drupal/console-core" : "dev-master",
42+
"drupal/console-core" : "~1.0",
4343
"symfony/css-selector": "~2.8",
4444
"symfony/debug": "~2.6|~2.8",
4545
"symfony/dom-crawler": "~2.7|~2.8",

composer.lock

Lines changed: 17 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)