Drupal 8 development tool Drupal Console introduction

Source: Internet
Author: User
Tags php framework drupal

I believe that many developers have started exploring drupal8-download and install the beta version of drupal 8. Developers who haven't started to try drupal 8 can clearly tell us that we will have many new concepts to understand, understand, and use. When we try to write a drupal 8 module, we also need to know a lot of code knowledge. This poses a new challenge to us, that is, endless error reporting.

Fortunately, the new drupal 8 development tool has been born and put into extensive testing and use.

It is the main character of drupalconsole.

Compared with the previous drush, drupalconsole is more interesting to the author. It originated from symfony, a great php Framework-if you are interested in learning about it. It serves the development process of drupal 8.
So what is the Drupal Console?

The Drupal Console is an effort to bring The Symfony Console Component to Drupal 8.

The purpose of this project is to bring the influence of the symfony console component into the world of drupal 8. It helps you create the drupal 8 module.

This project enables you to focus on one thing-create commands.

Where is the project information?

Project homepage http://drupalconsole.com
Drupal official https://drupal.org/project/console
Github https://github.com/hechoendrupal/DrupalAppConsole.
Document http://hechoendrupal.gitbooks.io/drupal-console
Online https://gitter.im/hechoendrupal/DrupalAppConsole support

Get started

Installation:
Http://drupalconsole.com/installer | php
If there is no curl
Php-r "readfile ('http: // drupalconsole.com/installer');" | php
The above Command will check the php. ini settings on the server. If the requirements are not met, you can modify the settings on your own Baidu.

Then:
Mv console. phar/usr/local/bin/drupal

Go to the installation directory of drupal 8, and you can execute the following command!
Drupal generate: module


With a dynamic image on the official drupalconsole website, right-click the new window and open it to better experience the fun of drupalconsole.


With the DrupalConsole command: you can enter "drupal" in the drupalconsole command line to call up all commands.

Usage:
Command [options] [arguments]

Options:
-- Help (-h) Display this help message
-- Quiet (-q) Do not output any message
-- Verbose (-v | vv | vvv) Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
-- Version (-V) Display this application version
-- Ansi Force ANSI output
-- No-ansi Disable ANSI output
-- No-interaction (-n) Do not ask any interactive question
-- Drupal (-d) Path to Drupal root.
-- Shell (-s) Launch the shell.
-- Env (-e) The Environment name. (default: "prod ")
-- No-debug Switches off debug mode.
-- Learning Generate a verbose code output.

Available commands:
Cr Rebuild and clear all site caches.
Drush Run drush from console.
Help Displays help for a command
List Lists commands
Self-update Update the console to latest version.
Cache
Cache: rebuild Rebuild and clear all site caches.
Config
Config: debug Show the current configuration.
Config: edit Edit the selected configuration.
Config: export Export current application configuration.
Config: override Override config value in active configuration.
Container
Container: debug Displays current services for an application.
Generate
Generate: authentication: provider Generate an Authentication Provider
Generate: command Generate commands for the console.
Generate: controller Generate & Register a controller
Generate: entity: config Generate a new "EntityConfig"
Generate: entity: content Generate a new "EntityContent"
Generate: form: config Generate a new "ConfigFormBase"
Generate: module Generate a module.
Generate: permissions Generate module permissions
Generate: plugin: block Generate a plugin block
Generate: plugin: imageeffect Generate image effect plugin.
Generate: plugin: rest: resource Generate plugin rest resource
Generate: plugin: rulesaction Generate a plugin rule action
Generate: service Generate service
Migrate
Migrate: debug Display current migration available for the application
Migrate: execute Execute a migration available for application
Module
Module: debug Display current modules available for application
Module: download Install module or modules in the application
Module: install Install module or modules in the application
Module: uninstall Install module or modules in the application
Rest
Rest: debug Display current rest resource for the application
Rest: disable Disable a rest resource for the application
Rest: enable Enable a rest resource for the application
Router
Router: debug Displays current routes for the application
Router: rebuild Rebuild routes for the application
Site
Site: maintenance Switch site into maintenance mode
Site: mode Switch system performance configuration
Test
Test: debug List Test Units available for the application.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.