Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Config Start --
- drupal generate:module --module="Paris Saint-Germain" --machine-name="psg" --module-path="/modules/custom" --description="No, I can't speak French" --core="8.x" --package="France" --module-file --composer --dependencies="user" --no-interaction
- drupal module:install psg
- 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="psg" --update-n="8001" --no-interaction
- drupal generate:update --module="psg" --update-n="8002" --no-interaction
- drupal generate:update --module="psg" --update-n="8003" --no-interaction
- drupal update:debug
- drupal update:execute psg
- drupal update:execute psg 8002
- drupal generate:post:update --module="psg" --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="psg" --class="Paris Saint-GermainViewsPHPField" --title="Paris Saint-Germain Views PHP field" --description="My awesome psg views PHP field plugin." --learning
- drupal generate:plugin:ckeditorbutton --module="psg" --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 exec 'ls -lah'
- drupal plugin:debug
- drupal server
- -- Others Stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement