こんなこともできるWP-CLI 〜0から触ってみよう!〜

こんなこともできるWP-CLI 〜0から触ってみよう!〜

WP ZoomUP#42 で登壇した際の資料です。
Design by @nukaga

76e74d380818461ec19cb0fed3e0ad28?s=128

Shizumi Yoshiaki

June 12, 2020
Tweet

Transcript

  1. 3.

    ͔̌ΒͷWP-CLI W P - C L I ͸ ศ ར

    ͱ ฉ ͘ ࣮ ࡍ ΍ ͬͯ Έ Α ͏ ͱ ࢥ ͬͯ ΋ Ͱ ͖ ͳ ͔ ͬ ͨ ͳ ͥ ɺ ࠓ W P - C L I ͷ η ο γ ϣ ϯ ͳ ͷ ͔ ʁ W P - C L I Ͱ ◦ ◦ ͢ Δ ͱ ͍ ͍ Α ͱ ݴ Θ Ε Δ ͜ ͱ ΋ ͋ Δ
  2. 4.

    Ͳ͏ͯ͠Ͱ͖ͳ͔ͬͨʁ ͦ ΋ ͦ ΋ ج ૅ ஌ ࣝ ͕

    ଍ Γ ͳ ͍ ̍ ͔ Β ͡ Ό ͳ ͘ ̌ ͔ Β ඞ ཁ ͳ ͥ ɺ ࠓ W P - C L I ͷ η ο γ ϣ ϯ ͳ ͷ ͔ ʁ S S H ͱ ͔ Ͱ ͖ ͯ ͍ Δ ͜ ͱ લ ఏ ͷ ৘ ใ ͹ ͔ Γ ͩ ͔ Β
  3. 7.

    WP-CLIͬͯԿʁ ͦ ΋ ͦ ΋ ͷ ͓ ࿩ https://wp-cli.org/ W

    P - C L I ͱ ͸ γ Σ ϧ ʢ ί Ϛ ϯ υ ϥ Π ϯ ʣ Ͱ W o r d P r e s s Λ ૢ ࡞ ͢ Δ ΋ ͷ ɻ
  4. 8.

    Ͱ ͸ ɺ ͪ ΐ ͬ ͱ ࣮ ࡍ ʹ

    ݟ ͯ Έ · ͠ ΐ ͏
  5. 9.

    ͲΜͳ࣌ʹ࢖͍͍ͨʁ ϩ ά Π ϯ Ͱ ͖ ͳ ͘ ͳ

    Γ ಛ ఆ ͷ ϓ ϥ ά Π ϯ Λ ఀ ࢭ ͠ ͨ ͍ ॳ ظ Ϣ ʔ β ʔ ύ ε ϫ ʔ υ ͷ ϝ ʔ ϧ ͕ ಧ ͔ ͣ ύ ε ϫ ʔ υ ͷ ࠶ ൃ ߦ Λ ͠ ͨ ͍ Ͳ Μ ͳ ࣌ ʹ W P - C L I ࢖ ͑ ͨ Β ͱ ࢥ ͬ ͨ ʁ ؅ ཧ ը ໘ ʹ ೖ Ε ͳ ͍ ࣌ ʹ ࢖ ͍ ͨ ͍
  6. 10.

    ͲΜͳ࣌ʹ࢖ͬͯΔʁ • D B ͷ Τ Ϋ ε ϙ ʔ

    τ ʢ ό ο Ϋ Ξ ο ϓ ʣ • D B ͷ Π ϯ ϙ ʔ τ ʢ ό ο Ϋ Ξ ο ϓ ͔ Β ݩ ʹ ໭ ͢ ʣ • D B ͷ Ұ ੪ ஔ ׵ ( S Q L Ͱ ΍ Δ ͱ D B Λ ྑ ͘ Θ ͔ ͬͯ ͳ ͍ ͱ ͍ ͚ ͳ ͍ ɾ ϓ ϥ ά Π ϯ ͩ ͱ ҆ શ ͩ ͚ Ͳ Χ ε λϜ ౤ ߘ λ Π ϓ ͷ ஔ ͖ ׵ ͑ ͸ Ұ ޻ ෉ ඞ ཁ ) Ͳ Μ ͳ ࣌ ʹ W P - C L I ࢖ ͑ ͨ Β ͱ ࢥ ͬ ͨ ʁ
  7. 11.

    ͲΜͳ࣌ʹ࢖ͬͯΔʁ • W o r d P r e s

    s ͷ Ξ ο ϓ σ ʔ τ • ϓ ϥ ά Π ϯ ͷ Ξ ο ϓ σ ʔ τ • W o r d P r e s s ͷ ί Ξ ϑ Ν Π ϧ ͷ μ ΢ ϯ ϩ ʔ υ • w p - c o n f i g . p h p ͷ ࡞ ੒ • W o r d P r e s s ͷ Π ϯ ε τ ʔ ϧ Ͳ Μ ͳ ࣌ ʹ W P - C L I ࢖ ͑ ͨ Β ͱ ࢥ ͬ ͨ ʁ ؅ ཧ ը ໘ ʹ ೖ Β ͳ ͘ ͯ ΋ ࡞ ۀ Ͱ ͖ Δ
  8. 12.

    ؅ ཧ ը ໘ ʹ ೖ Β ͳ ͘ ͯ

    ΋ ࡞ ۀ Ͱ ͖ Δ ؅ ཧ ը ໘ ʹ ೖ Ε ͳ ͍ ࣌ ʹ ࢖ ͍ ͨ ͍ Ͳ Μ ͳ ࣌ ʹ W P - C L I ࢖ ͑ ͨ Β ͱ ࢥ ͬ ͨ ʁ
  9. 13.

    Ͳ Μ ͳ ࣌ ʹ W P - C L

    I ࢖ ͑ ͨ Β ͱ ࢥ ͬ ͨ ʁ α ʔ ό ʔ ͸ Ͱ ͖ Δ ͚ Ͳ W o r d P r e s s ͸ Ͱ ͖ ͳ ͍ ਓ ͨ ͪ ʹ ޲ ͚ ͯ ͸ ࠷ ޙ ʹ T i p s Λ ౤ ͛ · ͢
  10. 14.

    ௒جૅ ͟ ͬ ͘ Γ ʹ ͳ Δ ͚ Ͳ

    ڐ ͠ ͯ Ͷ ̌ ͔ Β ͷ W P - C L I
  11. 15.

    ௒جૅ ̌ ͔ Β ͷ W P - C L

    I ͦ ΋ ͦ ΋ ͳ Μ ͳ ͷ ͔ W o r d P r e s s Λ ί Ϛ ϯ υ ϥ Π ϯ ( C U I ) Ͱ ૢ ࡞ ͢ Δ ΋ ͷ ɻ
  12. 16.

    ௒جૅ ̌ ͔ Β ͷ W P - C L

    I C U I ͱ G U I ͬͯ ʁ C U I จ ࣈ ͷ Έ Ͱ ί ϯ ϐ ϡ ʔ λ Λ ૢ ࡞ ͢ Δ ͨ Ί ͷ Π ϯ λ ʔϑ Σ ʔε ɻ G U I ί ϯ ϐ ϡ ʔ λ Λ ૢ ࡞ ͢ Δ ্ Ͱ ά ϥ ϑ Ο Χ ϧ ʹ ૢ ࡞ ಺ ༰ Λ ද ࣔ ͠ ͨ Π ϯ λ ʔϑ Σ ʔε ɻ
  13. 17.

    ௒جૅ ̌ ͔ Β ͷ W P - C L

    I ୭ ͕ Ͳ ͏ ͍ ͏ ࣌ ʹ ࢖ ͬͯ Δ ͷ ʁ • ج ຊ త ʹ Τ ϯ δ χ Ξ ͷ ํ ͕ ࢖ ͏ • ί ϯ ϐ ϡ ʔ λ Λ ௚ ઀ ૢ ࡞ ͠ ͨ ͍ • ߴ ౓ ͳ ઃ ఆ Λ ߦ ͍ ͨ ͍ • Ϛ ΢ ε Λ ࢖ ͍ ͨ ͘ ͳ ͍
  14. 18.

    ௒جૅ ̌ ͔ Β ͷ W P - C L

    I ͳ ΜͰ ࠇ ͍ ͷ ʁ ͋ ͱ ɺ ͳ ΜͰ M a c Ͱ ͸ ന ͍ ͷ ʁ ന എ ܠ ͩ ͱ ί ϯ τ ϥ ε τ ͕ ڧ ͢ ͗ ௕ ࣌ ؒ ݟ ଓ ͚ Δ ͷ ͕ ਏ ͍ ɻ ଟ ͘ ͷ Τ ϯ δ χ Ξ / ϓ ϩ ά ϥ Ϛ ͸ ଟ ෼ ɺ Τ σΟ λ ΋ ࠇ ͘ ͠ ͯ Δ ɻ ͦ ΋ ͦ ΋ ࠷ ॳ ظ ͷ ϒ ϥ ΢ ϯ ؅ ͸ ޫ ͷ ੍ ޚ ʹ ݶ Γ ͕ ߹ ͬ ͨ ͷ Ͱ ɺ Α Γ ޫ Λ ࢖ Θ ͳ ͍ ࠇ ஍ ͩ ͬ ͨ Β ͠ ͍ ɻ ͦ Ε Λ Ҿ ͖ ܧ ͍ Ͱ ͍ Δ ͷ ͔ ΋ ɻ M a c Ͱ ͳ ͥ ന ͍ ͔ ͸ Θ ͔ Β ͳ ͔ ͬ ͨ …
  15. 19.

    Words ग़ͯ͘Δݴ༿ ͓඼ॻ͖ΛݟͯͶ h t t p s : /

    / w p z o o m u p . c o m / m e n u / # ༻ ޠ ू
  16. 20.

    WP-CLIͬͯʁ ̌ ͔ Β ͷ W P - C L

    I W o r d P r e s s Λ ί Ϛ ϯ υ ϥ Π ϯ ( C U I ) Ͱ ૢ ࡞ ͢ Δ ΋ ͷ ɻ C U I ͱ ͸ ί ϯ ϐ ϡ ʔ λ ʔ Λ ૢ ࡞ ͢ Δ ͨ Ί ͷ U I ࣗ ෼ ͷ M a c ΍ W i n d o w s ʢ ϩ ʔ Χ ϧ ʣ α ʔ ό ʔ ʢ Ϧ Ϟ ʔ τ ʣ
  17. 21.

    Ϧ Ϟ ʔ τ α ʔ ό ʔ ΁ ͷ

    ܨ ͗ ํ ΁ ਐ Έ · ͢
  18. 22.

    W i n d o w s / M a

    c ڞ ௨ Ͱ ඞ ཁ ͳ ͜ ͱ αʔόʔ΁ͷ ܨ͗ํ C O N N E C T T O T H E S E R V E R
  19. 23.

    αʔόʔଆͷઃఆ α ʔ ό ʔ ΁ ͷ ܨ ͗ ํ

    α ʔ ό ʔ ઃ ఆ ʢ ί ϯ τ ϩ ʔ ϧ ύ ω ϧ ʣ Ͱ S S H Λ O N ʹ ͢ Δ / α ʔ ό ʔ ձ ࣾ ͞ Μ ͷ S S H ઃ ఆ XServerɹhttps://www.xserver.ne.jp/manual/man_server_ssh.php ͘͞Βɹhttps://help.sakura.ad.jp/206054152/ ϩϦϙοϓɹhttps://lolipop.jp/manual/user/ssh/ AMIMOTO https://support.amimoto-ami.com/en/articles/934029-ϚωʔδυϗεςΟϯάͰαʔ ό΁-ssh-઀ଓΛߦ͏ํ๏
  20. 25.

    Windows Windowsฤ α ʔ ό ʔ ΁ ͷ ܨ ͗

    ํ Te r a Te r m ΍ P u T T Y ͱ ͔ P o w e r S h e l l ʢ M a c ͱ ಉ ͡ ײ ֮ Ͱ ࢖ ͑ Δ ʣ ࢖ ͏ ΋ ͷ Te r a Te r m ͷ ࢖ ͍ ํ Λ ݟ ͯ Έ · ͠ ΐ ͏
  21. 27.

    Mac Macฤ α ʔ ό ʔ ΁ ͷ ܨ ͗

    ํ λ ʔ ϛ φ ϧ ࢖ ͏ ΋ ͷ
  22. 28.

    Mac Macฤ α ʔ ό ʔ ΁ ͷ ܨ ͗

    ํ  T T I  < Ϣ ʔ β * % > ! < ϗ ε τ ໊ > Τ ϯ λ ʔ ͠ ͯ ɺ ύ ε ϫ ʔ υ Λ ೖ ྗ ɻ 伴 ೝ ূ ͷ ৔ ߹ ͸ ɺ T T I  < Ϣ ʔ β * % > ! < ϗ ε τ ໊ >   J  < 伴 ϑ Ν Π ϧ ΁ ͷ ύ ε > S S H ί Ϛ ϯ υ
  23. 29.

    W i n d o w s / M a

    c ڞ ௨ αʔόʔͰ ΍ͬͯΈΑ͏ O P E R A T E O N T H E S E R V E R
  24. 30.

    ࣗ෼ͷ৔ॴΛ஌Δ ί Ϛ ϯ υ Λ ࢖ ༻ ʢ p

    r e s e n t w o r k i n g d i r e c t o r y ͷ ུ ʣ ࠓ ͍ Δ ৔ ॴ ͷ ઈ ର ύ ε ͕ ද ࣔ ͞ Ε · ͢ɻ α ʔ ό ʔ Ͱ ΍ ͬ ͯ Έ Α ͏ Q X E
  25. 31.

    WordPressͷ৔ॴΛ஌Δ S S H Ͱ ೖ ͬ ͨ ͱ ͖

    ͷ ϧ ʔ τ ͱ ɺ F T P Ͱ ೖ ͬ ͨ ͱ ͖ ͷ ϧ ʔ τ ͸ ಉ ͡ ɻ ͳ ͷ Ͱ ɺ ͦ Ε ௨ Γ ʹ Ҡ ಈ ͠ ͯ ͍ ͚ ͹ Α ͍ ɻ α ʔ ό ʔ Ͱ ΍ ͬ ͯ Έ Α ͏ ج ຊ త ͳ Ϩ ϯ λ ϧ α ʔ ό ͷ ৔ ߹
  26. 32.

    lsίϚϯυͷ࢖͍ํ ͕ ج ຊ త ͳ ࢖ ͍ ํ ɻ

    ࠓ ͍ Δ ৔ ॴ ʹ ͋ Δ ϑ Ν Π ϧ ͕ Ұ ཡ ͞ Ε Δ ɻ Φ ϓ γ ϣ ϯ ͱ ͠ ͯ  B ΍  M ͕ ͋ Δ ɻ Ұ ෦ ͷ Φ ϓ γ ϣ ϯ ͸ ଓ ͚ ͯ ॻ ͘ ͜ ͱ ͕ Ͱ ͖ Δ (  B M ) α ʔ ό ʔ Ͱ ΍ ͬ ͯ Έ Α ͏ M T
  27. 33.

    cdίϚϯυͷ࢖͍ํ  D E  < Ҡ ಈ ઌ ͷ

    ύ ε >  ૬ ର ύ ε ΋ ઈ ର ύ ε ΋ ࢖ ͑ Δ ɻ ಛ घ ͳ ࣄ ৘ ͕ ͳ ͍ ݶ Γ Ϩ ϯ λ ϧ α ʔ ό Ͱ ͸ ૬ ର ύ ε Λ ࢖ ͏ ͜ ͱ ͷ ΄ ͏ ͕ ଟ ͍ ɻ α ʔ ό ʔ Ͱ ΍ ͬ ͯ Έ Α ͏
  28. 34.

    WP-CLI͕ೖ͍ͬͯΔ͔֬ೝ X Q    J O G P

    Λ ΍ ͬͯ Έ Α ͏ ೖ ͬͯ ͍ ͨ Β → p h p ͷ ύ ε ͳ Ͳ ͷ ৘ ใ ͕ ग़ Δ ೖ ͬͯ ͳ ͚ Ε ͹ → Τ ϥ ʔ ͬ Ά ͍ ϝ ο η ʔ δ ͕ ग़ Δ ɹ ɹ ɹ ɹ ʢ c o m m a n d n o t f o u n d ͳ Ͳ ʣ α ʔ ό ʔ Ͱ ΍ ͬ ͯ Έ Α ͏
  29. 35.

    W i n d o w s / M a

    c ڞ ௨ WP-CLIΛ Πϯετʔϧ ͢Δ I N S T A L L I N G T H E W P - C L I
  30. 36.

    Ϩϯλϧαʔόʔͷ৔߹ Ϩ ϯ λ ϧ α ʔ ό ʔ Ͱ

    ެ ࣜ υ Ω ϡ ϝ ϯ τ ͷ ௨ Γ ʹ ૢ ࡞ ͢ Δ ͱ ͏ · ͘ ͍ ͖ · ͤ Μ W P - C L I ͷ Π ϯ ε τ ʔ ϧ ؾ Λ ͭ ͚ ͯ ʂ
  31. 37.
  32. 38.

    Ϩϯλϧαʔόʔͷ৔߹ Ϩ ϯ λ ϧ α ʔ ό ͩ ͱ

    T V E P ͱ ͍ ͏ ί Ϛ ϯ υ ͕ ࢖ ͑ ͳ ͍ ͜ ͱ ͕ ଟ ͍ ͷ Ͱ ͜ ͷ ෦ ෼ ͕ ҧ ͍ · ͢ɻ W P - C L I ͷ Π ϯ ε τ ʔ ϧ
  33. 39.

    Ϩϯλϧαʔόʔͷ৔߹ D E  d  ϗ ʔ Ϝ σ

    Ο Ϩ Ϋ τ Ϧ ʹ Ҡ ಈ N L E J S  C J O  b i n σ Ο Ϩ Ϋ τ Ϧ Λ ࡞ ੒ D E  C J O  b i n σ Ο Ϩ Ϋ τ Ϧ ʹ Ҡ ಈ N W  < X Q  D M J  Q I B S  ͷ ύ ε >    w p - c l i Λ b i n σ Ο Ϩ Ϋ τ Ϧ ʹ Ҡ ಈ N W  X Q  D M J  Q I B S  X Q w p - c l i . p h a r Λ w p ͱ ͍ ͏ ໊ લ ʹ Ϧ ω ʔ Ϝ W P - C L I ͷ Π ϯ ε τ ʔ ϧ Ϩ ϯ λ ϧ α ʔ ό Ͱ ͷ ઃ ఆ ͷ Ұ ྫ
  34. 40.

    CLIͰ࢖͑ΔPHPΛ஌Δ Ϩ ϯ λ ϧ α ʔ ό ͝ ͱ

    ʹ ύ ε ΍ ه ࡌ ํ ๏ ͕ ҧ ͍ · ͢ɻ Ϛ χ ϡ Ξ ϧ ΍ α ʔ ό ৘ ใ ͷ ϖ ʔ δ ʹ ه ࡌ ͕ ͋ Γ · ͢ɻ W P - C L I ͷ Π ϯ ε τ ʔ ϧ ྫʣXSERVER
  35. 41.

    RCϑΝΠϧΛ৮Δ Ͳ ͷ छ ྨ ͷ γ Σ ϧ ͕

    ಈ ͍ ͯ ͍ Δ ͔ ν Σ ο Ϋ  F D I P     ͜ Ε Ͱ ද ࣔ ͞ Ε ͨ ΋ ͷ ͕ ࢖ Θ Ε ͯ ͍ Δ γ Σ ϧ e x ) z s h , b a s h , c s h ͳ Ͳ ͦ ͷ ໊ લ ͷ ઌ ಄ ʹ . ͓ ৲ ʹ r c Λ ෇ ͚ ͨ ͷ ͕ R C ϑ Ν Π ϧ e x ) . z s h r c , . b a s h r c , . c s h r c ͳ Ͳ W P - C L I ͷ Π ϯ ε τ ʔ ϧ
  36. 42.

    RCϑΝΠϧΛ৮Δ D E  d # ϗ ʔ Ϝ σ

    Ο Ϩ Ϋ τ Ϧ ʹ Ҡ ಈ W J   < ࢖ ͬ ͯ Δ γ Σ ϧ ໊ > S D W P - C L I ͷ Π ϯ ε τ ʔ ϧ Τ σ Ο λ ͕ ։ ͖ R C ϑ Ν Π ϧ ʢ ઃ ఆ ϑ Ν Π ϧ ʣ Λ ฤ ू ͢ Δ
  37. 43.

    viΤσΟλͷ࢖͍ํ • J  Λ ೖ ྗ ͠ ͯ ɺ

    Π ϯ α ʔ τ ( ೖ ྗ ) Ϟ ʔ υ • e s c Ω ʔ Ͱ Ϗ ϡ ʔ Ϟ ʔ υ ʹ ໭ Δ • Ϗ ϡ ʔ Ϟ ʔ υ Ͱ  R Ͱ ด ͡ Δ • Ϗ ϡ ʔ Ϟ ʔ υ Ͱ  X R Ͱ ্ ॻ ͖ อ ଘ ͠ ͯ ด ͡ Δ • Ϗ ϡ ʔ Ϟ ʔ υ Ͱ  R  Ͱ อ ଘ ͤ ͣ ʹ ด ͡ Δ W P - C L I ͷ Π ϯ ε τ ʔ ϧ Χ ʔ ι ϧ ͷ Ҡ ಈ ͸ ໼ ҹ Ω ʔ Ͱ ߦ ͏ ಈ ͔ ͳ ͍ ͱ ͖ ͸ h j k l Ω ʔ Λ ࢖ ͬ ͯ Ҡ ಈ ( ← ↓ ↑ → )
  38. 44.

    RCϑΝΠϧΛ৮Δ W P - C L I ͷ Π ϯ

    ε τ ʔ ϧ R C ϑ Ν Π ϧ ʹ Ҏ Լ ͷ ಺ ༰ Λ ه ࡌ b a s h ΍ z s h ͷ ͱ ͖  B M J B T  X Q   < Q I Q ͷ ύ ε >  d  C J O  X Q    c s h ͷ ͱ ͖  B M J B T  X Q   < Q I Q ͷ ύ ε >  d  C J O  X Q    ॻ ͍ ͨ Β e s c Ω ʔ →  X R
  39. 45.

    RCϑΝΠϧΛಡΈࠐΉ X Q    J O G P

     Ͱ ɺ ಈ ͔ ͳ ͔ ͬ ͨ Β ɺ Ұ ౓ S S H ͔ Β ൈ ͚ ( e x i t ) ࠶ ౓ S S H ʹ ઀ ଓ ͠ ͯ ɺ W P - C L I ͷ Π ϯ ε τ ʔ ϧ ※ ͦ Ε Ͱ ͩ Ί ͳ ৔ ߹ ͸ r c ͷ ઃ ఆ Λ ݟ ௚ ͠ ͯ ؒ ҧ ͑ͯ ͳ ͔ ͬ ͨ Β ʮ α ʔ ό ໊ r c ϑ Ν Π ϧ ʯ ͱ ͔ Ͱ ௐ ΂ Δ ͱ ৘ ใ ग़ ͯ ͘ Δ ͔ ΋ ɻ X Q    J O G P T P V S D F  d   < γ Σ ϧ ໊ > S D
  40. 46.

    W i n d o w s / M a

    c ڞ ௨ WP-CLIΛ ৮ͬͯΈΑ͏ O P E R A T I N G O N T H E W P - C L I
  41. 47.

    ͲΜͳ࣌ʹ࢖͍͍ͨʁ ϩ ά Π ϯ Ͱ ͖ ͳ ͘ ͳ

    Γ ಛ ఆ ͷ ϓ ϥ ά Π ϯ Λ ఀ ࢭ ͠ ͨ ͍ ॳ ظ Ϣ ʔ β ʔ ύ ε ϫ ʔ υ ͷ ϝ ʔ ϧ ͕ ಧ ͔ ͣ ύ ε ϫ ʔ υ ͷ ࠶ ൃ ߦ Λ ͠ ͨ ͍ Ͳ Μ ͳ ࣌ ʹ W P - C L I ࢖ ͑ ͨ Β ͱ ࢥ ͬ ͨ ʁ ؅ ཧ ը ໘ ʹ ೖ Ε ͳ ͍ ࣌ ʹ ࢖ ͍ ͨ ͍
  42. 48.

    ϩ ά Π ϯ Ͱ ͖ ͳ ͘ ͳ Γ

    ಛ ఆ ͷ ϓ ϥ ά Π ϯ Λ ఀ ࢭ ͠ ͨ ͍ X Q  Q M V H J O  M J T U  Ͱ ϓ ϥ ά Π ϯ ໊ ( s l u g ) Λ ௐ ΂ Δ X Q  Q M V H J O  E F B D U J W B U F  ϓ ϥ ά Π ϯ ໊ T M V H  Ͱ ఀ ࢭ ͠ · ͢ɻ Ͳ Μ ͳ ࣌ ʹ W P - C L I ࢖ ͑ ͨ Β ͱ ࢥ ͬ ͨ ʁ
  43. 49.

    ॳ ظ Ϣ ʔ β ʔ ύ ε ϫ ʔ

    υ ͷ ϝ ʔ ϧ ͕ ಧ ͔ ͣ ύ ε ϫ ʔ υ ͷ ࠶ ൃ ߦ Λ ͠ ͨ ͍ Ͳ Μ ͳ ࣌ ʹ W P - C L I ࢖ ͑ ͨ Β ͱ ࢥ ͬ ͨ ʁ X Q  V T F S  V Q E B U F  < Ϣ ʔ β ʔ ໊ · ͨ ͸ Ϣ ʔ β ʔ * % >    V T F S @ Q B T T  < ม ߋ ͠ ͨ ͍ ύ ε ϫ ʔ υ >
  44. 50.

    ͦͷଞTips X Q  U F S N  D

    S F B U F  < U B Y P O P N Z >  < U F S N >    T M V H  < T M V H > େ ྔ ͷ λ ʔ Ϝ Λ ઃ ఆ ͠ ͨ ͍ ࣌ ( * ) ͸ ͜ Ε Λ ද ܭ ࢉ ι ϑ τ ౳ Ͱ ࡞ ੒ ͠ ɺ γ Σ ϧϑ Ν Π ϧ ʹ ͠ ͯ ࣮ ߦ ͢ Ε ͹ Ұ ॠ Ͱ ొ ࿥ ͠ ͯ ͘ Ε Δ ʂ ʂ ʂ ( * ) ౎ ಓ ෎ ݝ ͱ ͔ 5 0 Ի ͱ ͔ W P - C L I Λ ৮ ͬ ͯ Έ Α ͏ λ ʔ Ϝ ͷ ࡞ ੒ Λ ͠ ͨ ͍
  45. 51.

    ͦͷଞTips ɾ D B ͷ ό ο Ϋ Ξ ο

    ϓ Λ औ ಘ ͠ ͨ ͍ ɹ  X Q  E C  F Y Q P S U ɾ D B ͷ ό ο Ϋ Ξ ο ϓ ͔ Β Ϧ ε τ Ξ ͠ ͨ ͍ ɹ  X Q  E C  J N Q P S U  < T R M ϑ Ν Π ϧ ͷ ύ ε > W P - C L I Λ ৮ ͬ ͯ Έ Α ͏
  46. 52.

    ͦͷଞTips ɾ W o r d P r e s

    s ͷ Ξ ο ϓ σ ʔ τ Λ ͠ ͨ ͍ ɹ  X Q  D P S F  V Q E B U F ɾ ϓ ϥ ά Π ϯ ͷ Ξ ο ϓ σ ʔ τ Λ ͠ ͨ ͍ ɹ  X Q  Q M V H J O  V Q E B U F  < ϓ ϥ ά Π ϯ ໊ T M V H > W P - C L I Λ ৮ ͬ ͯ Έ Α ͏ ͢΂ ͯ ͷ ϓ ϥ ά Π ϯ ͷ Ξ ο ϓ σ ʔ τ ͸ ϓ ϥ ά Π ϯ ໊ ͷ ͱ ͜ Ζ ʹ   B M M
  47. 53.

    ॏཁɿࣗ෼Ͱௐ΂ͯ৮Δ Ͳ ͜ Ͱ ࣮ ߦ ͠ ͨ Β ྑ

    ͍ ͷ ʁ w p - c o n f i g . p h p ͕ ͋ Δ σ Ο Ϩ Ϋ τ Ϧ Α Γ Լ ɻ W P - C L I Λ ৮ ͬ ͯ Έ Α ͏
  48. 54.

    ॏཁɿࣗ෼Ͱௐ΂ͯ৮Δ ઌ ಄ ʹ ॻ ͍ ͯ ͋ Δ $

    ΍ % ͸ γ Σ ϧ ʹ ϩ ά Π ϯ ͠ ͯ Δ Ϣ ʔ β ͷ ݖ ݶ Λ ࣔ ͢ ͷ Ͱ ί ϐʔ ͠ · ͤ Μ ɻ · ͨ ɺ [ ] Ͱ ғ · Ε ͯ ͍ Δ ෦ ෼ ͸ Φ ϓ γ ϣ ϯ ͳ ͷ Ͱ ඞ ਢ Ͱ ͸ ͋ Γ · ͤ Μ ɻ ঢ় گ ʹ Α ͬͯ ෇ ͚ ͨ Γ ෇ ͚ ͳ ͔ ͬ ͨ Γ ͠ · ͢ɻ W P - C L I Λ ৮ ͬ ͯ Έ Α ͏ https://developer.wordpress.org/cli/commands/maintenance-mode/ Ͳ ͜ Λ ί ϐϖ ͠ ͨ Β ͍ ͍ ͷ ʁ