Skip to content

Instantly share code, notes, and snippets.

@enzolutions
Last active June 17, 2016 09:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save enzolutions/87dc8c36595bf1c717b3c581f41d5acc to your computer and use it in GitHub Desktop.
Save enzolutions/87dc8c36595bf1c717b3c581f41d5acc to your computer and use it in GitHub Desktop.
-- Config Start --
drupal generate:module --module="Royal Challengers" --machine-name="royal_challengers" --module-path="/modules/custom" --description="No, I can't speak Hindi" --core="8.x" --package="AFL" --module-file --composer --dependencies="user" --no-interaction
drupal module:install royal_challengers
drupal config:debug
drupal config:debug system.site
drupal config:export
drupal config:override system.site mail me@example.com
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="royal_challengers" --update-n="8001" --no-interaction
drupal generate:update --module="royal_challengers" --update-n="8002" --no-interaction
drupal generate:update --module="royal_challengers" --update-n="8003" --no-interaction
drupal update:debug
drupal update:execute royal_challengers
drupal update:execute royal_challengers 8002
drupal generate:post:update --module="royal_challengers" --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: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="royal_challengers" --class="Royal ChallengersViewsPHPField" --title="Royal Challengers Views PHP field" --description="My awesome royal_challengers views PHP field plugin." --learning
drupal generate:plugin:ckeditorbutton --module="royal_challengers" --class="LamsRibsButton" --label="I love lams ribs" --plugin-id="LamsRibsBtn" --button-name="LamsRibsBtn"
-- 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 plugin:debug
drupal server
-- Others Stop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment