Skip to content

Run WP CLI commands from your terminal without having to SSH into Local by Flywheel machine.

License

Notifications You must be signed in to change notification settings

bigwing/local-wp-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Setting up WP-CLI for Local by Flywheel

  1. Clone this repo into your project's folder, usually found under ~/Local Sites/. git clone https://github.com/bigwing/local-wp-cli.git wp-cli
  2. Rename folder to wp-cli. (Hint: you can skip this step by specifying wp-cli as the destination directory when cloning initially.)
  3. Open wp-cli.local.yml and edit the <project-url> and <user> fields to match your project.
  4. Open local.php and edit the DB_HOST ip:port to match the project's settings. Local uses the same IP but assigns a new port for each project.
  5. Move the wp-cli.local.yml up one directory into the root of the project. This lets you run wp commands directly from that folder, or any other folder inside the project.
  6. Run wp-cli commands from within your active project without having to SSH into the machine first. Try wp core version --extra to test.

Screenshot of Database settings in Local

License

Licensed under MIT. Original idea and code from the VVV project, modified for Local use by BigWing.

About

Run WP CLI commands from your terminal without having to SSH into Local by Flywheel machine.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages