Advertisement
Guest User

Untitled

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