Giter VIP home page Giter VIP logo

local-wpcli's Introduction

cover

A CLI to configure WP-CLI with the locally hosted websites of Local by Flywheel

version license downloads

The CLI now works with Local Lightning! ๐ŸŽ‰

๐Ÿš€ Getting Started!

Use the following command to install local-wpcli globally.

npm install -g local-wpcli

โœ… Usage

To use local-wpcli,

  1. Open terminal and go to the root of the website folder.
    cd ~/local-sites/wordpress/
  2. Type local-wpcli & press Enter (โŽ).
  3. Enter path to Socket file of the website & press Enter (โŽ).

๐Ÿ‘‰ Note: You can find Socket in the DATABASE tab of the website in Local by Flywheel's desktop app. Please refer to the following screenshot below for help.

  1. At this point, you can run wp as you normally would.

Local by Flywheel Screenshot

๐ŸŽฉ License & Attribution

MIT ยฉ Ashar Irfan.

This project is inspired by Create Guten Block.

local-wpcli's People

Contributors

asharirfan avatar dependabot[bot] avatar flimm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

local-wpcli's Issues

Support for Local Lightning

Description

I am opening this issue to keep track of the support for local lightning. I have recently explored how it creates the script files to launch the WP-CLI environment. And how I can integrate it with my cli.

Is the value providing from .dockerid worth the cost prompting for the Docker ID?

@asharirfan This is a very cool project. I'm doing something similar with salcode/ssh-into-local-by-flywheel, however wrapping everything in a npm package is a cool idea I'd not considered.

In my experience, the WP CLI portion should work without the .dockerid file. In my project, I include it so I can use my ssh-lbf command to SSH directly into the Docker instance.

Since this project focuses on WP CLI, I think you can get away without the .dockerid file.

I think this could be a real win because you'll eliminate one of the user prompts (which is always good ๐Ÿ˜€ ) and in my experience, finding the Docker ID is the most challenging step by far (since the Host IP and Host Port can both be found in the Local by Flywheel dashboard, but Docker ID can not).

Feel free to use the screenshot I already have at https://salferrarello.com/wp-content/uploads/2018/04/local-by-flywheel-database-for-wp-cli.png in your documentation if it is easier than making your own screenshot.

Thanks for sharing this project.

Cheers.

Remote Host/Port Not Available

I have a question about how to use this. Local isn't displaying a remote host and port for my site. I want to use the WP-CLI on my local site, which I use for plugin development. I don't have a remote site. Does this package support being used with a local site?
Screen Shot 2020-04-24 at 6 40 43 PM

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.