Created
July 18, 2016 11:37
-
-
Save enzolutions/385972603b7bfe839f24836c78a50997 to your computer and use it in GitHub Desktop.
DrupalGov 16 - Drupal Console Overview
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Config Start -- | |
drupal generate:module --module="Redskins" --machine-name="redskins" \ | |
--module-path="/modules/custom" --description="No, I can't understand NFL" \ | |
--core="8.x" --package="NFL" --module-file --composer --dependencies="user" \ | |
--no-interaction | |
drupal module:install redskins | |
drupal config:debug | |
drupal config:debug system.site | |
drupal config:export | |
drupal config:override system.site mail [email protected] | |
drupal config:debug system.site | |
drupal config:diff | |
drupal config:export:view | |
-- Config End -- | |
-- Cron Start -- | |
drupal cron:debug | |
drupal cron:execute search | |
drupal cron:execute search node | |
-- Cron End -- | |
-- Update Start -- | |
// Create example to add a update | |
drupal generate:update --module="redskins" --update-n="8001" --no-interaction | |
drupal generate:update --module="redskins" --update-n="8002" --no-interaction | |
drupal generate:update --module="redskins" --update-n="8003" --no-interaction | |
drupal update:debug | |
drupal update:execute redskins | |
drupal update:execute redskins 8002 | |
drupal generate:post:update --module="redskins" --post-update-name="first" --no-interaction | |
drupal update:debug | |
-- Update End -- | |
-- Create contet -- | |
drupal create:nodes article page --limit="3" --title-words="5" --no-interaction | |
drupal create:comments --limit=4 --no-interaction 7 | |
drupal create:terms --limit=6 --no-interaction | |
drupal create:users --limit=20 --no-interaction | |
drupal create:vocabularies --limit=10 --no-interaction | |
-- Create End -- | |
-- Chain Start -- | |
drupal chain:debug | |
drupal chain | |
drupal chain --file="/Users/enzo/.console/chain/quick-start-db.yml" --placeholder="db_type:mysql" --placeholder="db_host:127.0.0.1" --placeholder="db_name:sampledb2" --placeholder="db_user:root" --placeholder="db_pass:root" --placeholder="db_port:3306" | |
drupal chain --file="/Users/enzo/.console/chain/quick-start-db-env.yml" | |
export DATABASE_TYPE=mysql | |
export DATABASE_HOST=127.0.0.1 | |
export DATABASE_NAME=sampledb3 | |
export DATABASE_USER=root | |
export DATABASE_PASSWORD=root | |
export DATABASE_PORT=3306 | |
drupal chain --file="/Users/enzo/.console/chain/quick-start-db-env.yml" | |
-- End Chain -- | |
-- Database Start -- | |
drupal database:table:debug | |
drupal database:table:debug users | |
drupal database:client default | |
drupal database:dump default | |
drupal database:drop | |
drupal database:connect | |
mysql -A --user=root --password=root --host=127.0.0.1 --port=3306 --database=manila < manila-2016-04-30-07-25-29.sql | |
drupal database:restore --file=manila-2016-04-30-07-25-29.sql | |
-- Database Stop -- | |
-- Generate Start -- | |
drupal generate:plugin:views:field --module="redskins" --class="RedSkinsViewsPHPField" --title="ReadSkins Views PHP field" --description="My awesome redskins views PHP field plugin." --learning | |
drupal generate:plugin:ckeditorbutton --module="redskins" --class="LambRibsButton" --label="I love lamb ribs" --plugin-id="LambRibsBtn" --button-name="LambRibsBtn" | |
-- Generate Stop -- | |
-- Image Start -- | |
drupal image:styles:debug | |
drupal image:styles:flush medium | |
-- Image Stop -- | |
-- Site Start -- | |
drupal site:statistics | |
drupal site:debug | |
drupal site:import:local | |
-- Site Stop | |
-- State Start -- | |
drupal state:debug | |
drupal state:debug update.last_check | |
drupal state:delete | |
drupal state:debug node.min_max_update_time | |
drupal state:debug system.cron_last | |
drupal state:override system.cron_last | |
-- State Stop | |
-- Others Start -- | |
drupal exec 'ls -lah' | |
drupal event:debug | |
drupal event:debug kernel.response | |
drupal plugin:debug | |
drupal server | |
-- Others Stop |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment