WordPress CLI Introduction

SdĂ­let
VloĆŸit
  • čas pƙidĂĄn 7. 09. 2024
  • In this video, we go over how to get started with the WP-CLI!
    WP-CLI Docs: wp-cli.org/#in...
    WPScan (sponsor): wordpress.org/...
    💖 Become a Patron to show support & get perks!
    / wpcasts
    Sign up for the newsletter. Free course coming in 2020:
    wpcasts.tv
    *SOCIAL*
    Twitter: / alexanderbyoung
    Facebook: / wpcasts.tv
    #WordPress #CLI #Introduction

Komentáƙe • 66

  • @WPCasts
    @WPCasts  Pƙed 4 lety +34

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

    • @joietan7983
      @joietan7983 Pƙed 4 lety

      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 Pƙed 4 lety

      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 Pƙed 4 lety

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

    • @n4870s
      @n4870s Pƙed 4 lety

      @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 Pƙed 4 lety

      Yes !

  • @andersa9655
    @andersa9655 Pƙed 4 lety +11

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

    • @BuntyWP
      @BuntyWP Pƙed 4 lety +3

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

    • @vanessasnipe811
      @vanessasnipe811 Pƙed 3 lety

      SAME!

  • @christopherjschultz
    @christopherjschultz Pƙed 4 lety +3

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

  • @VitoMariaCusumano
    @VitoMariaCusumano Pƙed 4 lety +1

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

  • @craftcards_nl
    @craftcards_nl Pƙed 4 lety +1

    I would love to see more about this topic

  • @tarasdashkevych
    @tarasdashkevych Pƙed rokem

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

  • @LongPeter
    @LongPeter Pƙed 3 lety +3

    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?

  • @BuntyWP
    @BuntyWP Pƙed 4 lety

    I've been always fan of WP-CLI.

  • @jasonetaylor
    @jasonetaylor Pƙed 2 lety

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

  • @ashleyredman
    @ashleyredman Pƙed 4 lety

    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!

  • @dsimmons679
    @dsimmons679 Pƙed 4 lety

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

  • @PhiluxPhoto
    @PhiluxPhoto Pƙed rokem

    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 !

  • @oddocid9734
    @oddocid9734 Pƙed 2 lety

    Awesomeee!

  • @actualidadgratis5245
    @actualidadgratis5245 Pƙed 3 lety

    Awesome video! thank you for share your knowledge

  • @MrDefix
    @MrDefix Pƙed 4 lety

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

  • @deividaskrupstas
    @deividaskrupstas Pƙed 4 lety

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

    • @mjscpr
      @mjscpr Pƙed 3 lety

      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.

  • @josuebarros-desenvolvedorw2490

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

  • @johannes-euquerofalaralema4374

    awesome! More, please ;)

  • @natally3902
    @natally3902 Pƙed 2 lety

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

  • @fvgoya
    @fvgoya Pƙed 4 lety

    Like before watch.

  • @rangabharath4253
    @rangabharath4253 Pƙed 4 lety

    Awesome 👍😀

  • @KICKASS4272
    @KICKASS4272 Pƙed 4 lety

    Please do cover more

  • @troycastle5640
    @troycastle5640 Pƙed rokem

    how did you connect that to your live site??

  • @hisnameisrick
    @hisnameisrick Pƙed 3 lety

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

  • @benonhisway
    @benonhisway Pƙed 3 měsĂ­ci

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

  • @afflictionmarketing5303
    @afflictionmarketing5303 Pƙed 4 lety

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

  • @zkhan1995
    @zkhan1995 Pƙed 3 lety

    which OS do you use?

  • @osherezra8460
    @osherezra8460 Pƙed 4 lety

    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  Pƙed 4 lety

      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 Pƙed 4 lety

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

  • @DavidElstob73
    @DavidElstob73 Pƙed 4 lety

    Does this need a VPS as a minimum?

  • @joshuaberrios
    @joshuaberrios Pƙed 3 lety

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

    • @tiaan_va
      @tiaan_va Pƙed rokem +1

      He is clearly using terminal on his Mac

    • @joshuaberrios
      @joshuaberrios Pƙed rokem

      @@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.

  • @roshananwar3599
    @roshananwar3599 Pƙed 3 lety

    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

  • @hcjorgensen
    @hcjorgensen Pƙed 4 lety

    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

  • @markanderson77
    @markanderson77 Pƙed 2 lety +1

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

  • @tagfat
    @tagfat Pƙed 4 lety

    Woohooo! Global spelling-correction is now a thing!

  • @malatini_ytb
    @malatini_ytb Pƙed 2 lety

    I’m sorry it does not work.

  • @JonathanLoganClark
    @JonathanLoganClark Pƙed 2 lety +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 Pƙed 2 lety +1

      Thank you for this!

    • @JonathanLoganClark
      @JonathanLoganClark Pƙed 2 lety +1

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

    • @rawahapool
      @rawahapool Pƙed rokem

      thanks

  • @troycastle5640
    @troycastle5640 Pƙed rokem

    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

  • @BMikel
    @BMikel Pƙed 4 lety +1

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

    • @IanMarkind
      @IanMarkind Pƙed 4 lety

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

    • @TheMarouuu
      @TheMarouuu Pƙed 4 lety +1

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

    • @LaurenceBahiirwa
      @LaurenceBahiirwa Pƙed 4 lety +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 Pƙed 4 lety

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