Advertisement
Guest User

Untitled

a guest
Oct 5th, 2016
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.27 KB | None | 0 0
  1. -- Config Start --
  2. 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
  3.  
  4. drupal module:install psg
  5.  
  6. drupal config:debug
  7. drupal config:debug system.site
  8. drupal config:export
  9. drupal config:override system.site mail me@example.com
  10. drupal config:debug system.site
  11. drupal config:diff
  12. drupal config:export:view
  13.  
  14. -- Config End --
  15.  
  16. -- Cron Start --
  17.  
  18. drupal cron:debug
  19. drupal cron:execute search
  20. drupal cron:execute search node
  21.  
  22. -- Cron End --
  23.  
  24. -- Update Start --
  25. // Create example to add a update
  26.  
  27. drupal generate:update --module="psg" --update-n="8001" --no-interaction
  28. drupal generate:update --module="psg" --update-n="8002" --no-interaction
  29. drupal generate:update --module="psg" --update-n="8003" --no-interaction
  30.  
  31. drupal update:debug
  32. drupal update:execute psg
  33. drupal update:execute psg 8002
  34.  
  35. drupal generate:post:update --module="psg" --post-update-name="first" --no-interaction
  36.  
  37. drupal update:debug
  38.  
  39.  
  40. -- Update End --
  41.  
  42. -- Create contet --
  43. drupal create:nodes article page --limit="3" --title-words="5" --no-interaction
  44. drupal create:comments --limit=4 --no-interaction 7
  45. drupal create:terms --limit=6 --no-interaction
  46. drupal create:users --limit=20 --no-interaction
  47. drupal create:vocabularies --limit=10 --no-interaction
  48. -- Create End --
  49.  
  50. -- Chain Start --
  51.  
  52. drupal chain:debug
  53. drupal chain
  54.  
  55. 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"
  56.  
  57. drupal chain --file="/Users/enzo/.console/chain/quick-start-db-env.yml"
  58.  
  59. export DATABASE_TYPE=mysql
  60.  
  61. export DATABASE_HOST=127.0.0.1
  62.  
  63. export DATABASE_NAME=sampledb3
  64.  
  65. export DATABASE_USER=root
  66.  
  67. export DATABASE_PASSWORD=root
  68.  
  69. export DATABASE_PORT=3306
  70.  
  71. drupal chain --file="/Users/enzo/.console/chain/quick-start-db-env.yml"
  72.  
  73. -- End Chain --
  74.  
  75. -- Database Start --
  76.  
  77. drupal database:client default
  78. drupal database:dump default
  79. drupal database:drop
  80. drupal database:connect
  81.  
  82. mysql -A --user=root --password=root --host=127.0.0.1 --port=3306 --database=manila < manila-2016-04-30-07-25-29.sql
  83.  
  84. drupal database:restore --file=manila-2016-04-30-07-25-29.sql
  85.  
  86. -- Database Stop --
  87.  
  88. -- Generate Start --
  89.  
  90. 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
  91.  
  92. drupal generate:plugin:ckeditorbutton --module="psg" --class="LamsRibsButton" --label="I love lams ribs" --plugin-id="LamsRibsBtn" --button-name="LamsRibsBtn"
  93.  
  94. -- Generate Stop --
  95.  
  96. -- Image Start --
  97.  
  98. drupal image:styles:debug
  99. drupal image:styles:flush medium
  100.  
  101. -- Image Stop --
  102.  
  103. -- Site Start --
  104. drupal site:statistics
  105. drupal site:debug
  106. drupal site:import:local
  107.  
  108. -- Site Stop
  109.  
  110. -- State Start --
  111. drupal state:debug
  112. drupal state:debug update.last_check
  113. drupal state:delete
  114. drupal state:debug node.min_max_update_time
  115. drupal state:debug system.cron_last
  116. drupal state:override system.cron_last
  117.  
  118. -- State Stop
  119.  
  120. -- Others Start --
  121. drupal exec 'ls -lah'
  122. drupal plugin:debug
  123. drupal server
  124. -- Others Stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement