![cover](https://github.com/asharirfan/local-wpcli/raw/HEAD/assets/local-wpcli-cover.jpg)
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
,
- Open terminal and go to the root of the website folder.
cd ~/local-sites/wordpress/
- Type
local-wpcli
& press Enter (⏎). - 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.
- At this point, you can run
wp
as you normally would.
![Local by Flywheel Screenshot](https://github.com/asharirfan/local-wpcli/raw/HEAD/assets/local-wpcli-screenshot.jpg)
🎩 License & Attribution
MIT © Ashar Irfan.
This project is inspired by Create Guten Block.