-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from asharirfan/feature/lightning-support
Add Local Lightning support
- Loading branch information
Showing
13 changed files
with
567 additions
and
674 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
.vscode | ||
node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,31 @@ | ||
# ⚡ local-wpcli | ||
|
||
A CLI to configure WP-CLI with the locally hosted websites of [Local by Flywheel](https://local.getflywheel.com/). | ||
|
||
> This CLI does not support Local Lightning — latest major release — yet. Related issue for more information: [#13](https://github.com/asharirfan/local-wpcli/issues/13) | ||
> The CLI now works with Local Lightning! 🎉 | ||
## 🚀 Getting Started! | ||
|
||
Use the following command to install `local-wpcli` globally. | ||
|
||
```node | ||
npm install -g local-wpcli | ||
``` | ||
|
||
## ✅ Usage | ||
|
||
To use `local-wpcli`, | ||
|
||
1. Open terminal and go to the root of the website folder.<br> `cd ~/local-sites/local-wp/` | ||
2. Type `local-wpcli` & press enter. | ||
3. Before creating the configuration files, it will ask for: | ||
1. Remote Host (IP Address) | ||
2. Remote Port | ||
1. Open terminal and go to the root of the website folder.<br>`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 `Remote Host` & `Port` in the `DATABASE` tab of the website in Local by Flywheel's desktop app. Please refer to the screenshot below for help.* | ||
👉 *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.* | ||
|
||
![](https://i.imgur.com/W9JhPvI.png "Local by Flywheel Screenshot") | ||
!["Local by Flywheel Screenshot"](https://i.imgur.com/raRKqTv.jpg "Local by Flywheel Screenshot") | ||
|
||
## 🎩 License & Attribution | ||
|
||
MIT © [Ashar Irfan](https://asharirfan.com). | ||
|
||
This project is inspired by [Create Guten Block](https://github.com/ahmadawais/create-guten-block). Thank you [Ahmad Awais](https://twitter.com/MrAhmadAwais) for Create Guten Block. It rocks 🤘 | ||
This project is inspired by [Create Guten Block](https://github.com/ahmadawais/create-guten-block). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/** | ||
* CLI exit. | ||
*/ | ||
|
||
const end = require('exit-cli'); | ||
const pkgJson = require('../package.json'); | ||
|
||
const exit = async () => { | ||
|
||
await end({ | ||
github: 'https://github.com/asharirfan/local-wpcli', | ||
twitter: 'https://twitter.com/MrAsharIrfan', | ||
pkgJSON: pkgJson | ||
}); | ||
}; | ||
module.exports = exit; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.