WordPress CLI Introduction

แชร์
ฝัง
  • เผยแพร่เมื่อ 18 ธ.ค. 2024

ความคิดเห็น • 66

  • @WPCasts
    @WPCasts  4 ปีที่แล้ว +34

    Thanks for watching! Would you be interested in more WP-CLI content?

    • @joietan7983
      @joietan7983 4 ปีที่แล้ว

      wow this is powerful, can this be used to activate and deactivate plugin at scheduled times ? for example updraft / wpallimport plugin only activated just when they are needed.

    • @BuntyWP
      @BuntyWP 4 ปีที่แล้ว

      Yes Yes Yes... I would like to have more on CLI. I also did some videos for CLI ☺. It would be great if you can check out my playlist.

    • @mpgilbertusa
      @mpgilbertusa 4 ปีที่แล้ว

      Yes, please. You’ve got my attention to learn more.

    • @n4870s
      @n4870s 4 ปีที่แล้ว

      @WPCasts do you know if it is possible to export a sample page/post containing lots of acf fields/flex content to a file and import it in all subsites of a multisite network with WpCLI?

    • @cholinkol
      @cholinkol 4 ปีที่แล้ว

      Yes !

  • @andersa9655
    @andersa9655 4 ปีที่แล้ว +11

    I'd be very interested in more WP-CLI stuff

    • @BuntyWP
      @BuntyWP 4 ปีที่แล้ว +3

      WP-CLI is one of my fav. I also made some videos. You can checkout my playlist for that.

    • @vanessasnipe811
      @vanessasnipe811 4 ปีที่แล้ว

      SAME!

  • @christopherjschultz
    @christopherjschultz 4 ปีที่แล้ว +3

    This is great. I would definitely be keen for more videos on WP CLI. Cheers!

  • @tarasdashkevych
    @tarasdashkevych ปีที่แล้ว

    I would be interested to see more videos on this topic 👍

  • @LongPeter
    @LongPeter 3 ปีที่แล้ว +4

    Some more background info for command line novices would be great. Are you using SSH and installing WP CLI onto a remote server? Or installing it onto your local machine in something like Terminal then connecting to a remote server?

  • @jasonetaylor
    @jasonetaylor 2 ปีที่แล้ว

    Would love to see another video of more on wp-cli

  • @VitoMariaCusumano
    @VitoMariaCusumano 4 ปีที่แล้ว +1

    Great idea, wp cli is an essential node in learning wordpress.

  • @craftcards_nl
    @craftcards_nl 4 ปีที่แล้ว +1

    I would love to see more about this topic

  • @PhiluxPhoto
    @PhiluxPhoto ปีที่แล้ว

    This CLI seems super powerful. Thanks. I could use a super beginner introduction, "Hello World". I don't even understand where to install CLI, is it WP plugin ? Does it go on the hosting server ? What's the syntax ? What is curl ? Where do I open that CLI ? What are the prerequisites. Thanks !

  • @BuntyWP
    @BuntyWP 4 ปีที่แล้ว

    I've been always fan of WP-CLI.

  • @ashleyredman
    @ashleyredman 4 ปีที่แล้ว

    More content on the cli would be sweet, I’ve recently switched to spinupWP for hosting and use the cli to auto activate wp maintenance mode when a git deploy is taking place, good stuff!

  • @natally3902
    @natally3902 2 ปีที่แล้ว

    how can i manage existing wordpress through wp-cli? None of google resources say about that. Just about starting from scratch :)

  • @opinionatedako
    @opinionatedako ปีที่แล้ว

    how did you connect that to your live site??

  • @deividaskrupstas
    @deividaskrupstas 4 ปีที่แล้ว

    Yes please more! How to transfer database with CLI or the entire site.

    • @mjscpr
      @mjscpr 4 ปีที่แล้ว

      Did you find a solution to this? I would wp db export, copy files via rsync and then wp db import, then wp search-replace the database to change URLs. That does work, but maybe there's a better way. I use wordmove for this purpose, instead of WP CLI.

  • @zkhan1995
    @zkhan1995 3 ปีที่แล้ว

    which OS do you use?

    • @WPCasts
      @WPCasts  3 ปีที่แล้ว +1

      I'm on OSX

  • @actualidadgratis5245
    @actualidadgratis5245 4 ปีที่แล้ว

    Awesome video! thank you for share your knowledge

  • @dsimmons679
    @dsimmons679 4 ปีที่แล้ว

    Totally dug this! More Please! (I don't know what I don't know!)

    • @WPCasts
      @WPCasts  4 ปีที่แล้ว

      You got it!

  • @osherezra8460
    @osherezra8460 4 ปีที่แล้ว

    Hey Alex great one again defiantly looking forward for more wp-cli. just one question how did you open a terminal connected to site ground without SSH?
    plus do I need to install wp-cli on Siteground its not that clear from the video. cheers in advance

    • @WPCasts
      @WPCasts  4 ปีที่แล้ว

      The WP-CLI is pre-installed on Siteground. And here is an article on getting SSH access to your server: www.siteground.com/kb/how_to_log_in_to_my_shared_account_via_ssh_in_linux/

    • @osherezra8460
      @osherezra8460 4 ปีที่แล้ว

      @@WPCasts Thanks Alex sorry fpr the late reply cheers I'l check it out :)

  • @josuebarros-desenvolvedorw2490
    @josuebarros-desenvolvedorw2490 3 ปีที่แล้ว

    Its sooooo amazing!!! Please keep it up with Bedrock/Sage content too please

  • @MrDefix
    @MrDefix 4 ปีที่แล้ว

    Cool, keep going with wp cli! Also backup/restore or maybe automated backup with server cron job will be nice..

  • @johannes-euquerofalaralema4374
    @johannes-euquerofalaralema4374 3 ปีที่แล้ว

    awesome! More, please ;)

  • @KICKASS4272
    @KICKASS4272 4 ปีที่แล้ว

    Please do cover more

  • @DavidElstob73
    @DavidElstob73 4 ปีที่แล้ว

    Does this need a VPS as a minimum?

  • @JonathanLoganClark
    @JonathanLoganClark 2 ปีที่แล้ว +5

    For any devs working with "Local" from localwp.com you will need to right-click on the site name and select "Open Site Shell" in order to run certain commands like "wp plugin". Before using the "Open Site Shell" option I received an error saying "Error establishing a database connection". I hope this helps some of you.

    • @jasonetaylor
      @jasonetaylor 2 ปีที่แล้ว +1

      Thank you for this!

    • @JonathanLoganClark
      @JonathanLoganClark 2 ปีที่แล้ว +1

      @@jasonetaylor you’re welcome! I was scratching my head for a while before I figured it out.

    • @rawahapool
      @rawahapool ปีที่แล้ว

      thanks

  • @oddocid9734
    @oddocid9734 3 ปีที่แล้ว

    Awesomeee!

  • @joshuaberrios
    @joshuaberrios 3 ปีที่แล้ว

    What IDE tool are you using in this video to execute WP CLI?
    Is it Visual Studio Code?

    • @tiaan_va
      @tiaan_va 2 ปีที่แล้ว +1

      He is clearly using terminal on his Mac

    • @joshuaberrios
      @joshuaberrios 2 ปีที่แล้ว

      @@tiaan_va thanks for commenting. I cannot believe its been a year since this comment. I figured it out already during that time after I commented.

  • @hisnameisrick
    @hisnameisrick 3 ปีที่แล้ว

    3:09 - nobody should be SSH'ing straight into a running container. Those are ephemeral. Asid from that, this is a great video.

  • @fvgoya
    @fvgoya 4 ปีที่แล้ว

    Like before watch.

  • @afflictionmarketing5303
    @afflictionmarketing5303 4 ปีที่แล้ว

    Sure, but even after this watching. I don't have any idea how to connect with my hostgator account???
    Can you please help me.

  • @benonhisway
    @benonhisway 7 หลายเดือนก่อน

    for an absolute noob - what is sudo and how do I find that password?

  • @rangabharath4253
    @rangabharath4253 4 ปีที่แล้ว

    Awesome 👍😀

  • @roshananwar3599
    @roshananwar3599 3 ปีที่แล้ว

    when i try to move "sudo mv wp-cli.phar /usr/local/bin/wp" got error "-bash: sudo: command not found
    ". am using ssh using putty.
    and some thing is different from you, am using sitground shared hosting .
    Shell: /bin/bash
    PHP binary: /usr/local/php73/bin/php-cli
    PHP version: 7.3.26
    php.ini used: /usr/local/php73/lib/php.ini
    WP-CLI root dir: phar://wp-cli.phar/vendor/wp-cli/wp-cli
    WP-CLI vendor dir: phar://wp-cli.phar/vendor
    WP_CLI phar path: /home/customer
    WP-CLI packages dir:
    WP-CLI global config:
    WP-CLI project config:
    WP-CLI version: 2.4.0

  • @markanderson77
    @markanderson77 3 ปีที่แล้ว +1

    LOL. I can't even figure out how to curl a file!

  • @tagfat
    @tagfat 4 ปีที่แล้ว

    Woohooo! Global spelling-correction is now a thing!

  • @Uncaught_in_promise
    @Uncaught_in_promise 4 ปีที่แล้ว +1

    It would be great give some clues for Windows users. Not everyone in the world uses mac

    • @IanMarkind
      @IanMarkind 4 ปีที่แล้ว

      Try using Git Bash on Windows and then you can follow along

    • @TheMarouuu
      @TheMarouuu 4 ปีที่แล้ว +1

      They will be soon enough. You should get onboard :)

    • @LaurenceBahiirwa
      @LaurenceBahiirwa 4 ปีที่แล้ว +1

      Thanks for the vid. Did you add the CLI to a local computer or to server? How do you connect local to online? Would this be suitable for shared hosting?

    • @BuntyWP
      @BuntyWP 4 ปีที่แล้ว

      bhargavb.wordpress.com/2016/12/24/install-wp-cli-on-windows/

  • @hcjorgensen
    @hcjorgensen 4 ปีที่แล้ว

    A suggestion for good use of wp-cli - generating fake content in a dev environment. I use this wp-cli extension: github.com/nlemoine/wp-cli-fixtures

  • @malatini_ytb
    @malatini_ytb 3 ปีที่แล้ว

    I’m sorry it does not work.

  • @opinionatedako
    @opinionatedako ปีที่แล้ว

    This tutorial IS NOT COMPLETE... you didn't teach what you used to open that terminal... You did teach us to use Putty to open SSH