Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wp-cli support for local machine #564

Merged

Conversation

EHLOVader
Copy link
Contributor

Closes #563

This defines a custom wp-cli.yml for external use on the host machine.

If you have wp-cli installed locally and wanted to use it there instead of through vagrant ssh or other methods this should do it.

It accomplishes this by requiring a few php files to silence uneccessary warnings and to redefine the database for connecting from outside the VM.

So far in all local testing it has worked great.

@EHLOVader EHLOVader changed the title Added external configuration for wp-cli so if installed locally it may be used. wp-cli support for local machine Feb 3, 2015
@jeremyfelt jeremyfelt added this to the 1.3.0 (Next Release) milestone Feb 22, 2015
@jeremyfelt
Copy link
Member

This would be great, thanks @EHLOVader! I'm going to move it to the 1.3.0 milestone. Let's test it a bunch and get it in.

@EHLOVader
Copy link
Contributor Author

I also found out later that the internal wp-cli could be improved some by including the config/wp-cli/quiet.php itself. One poorly developed plugin in any WordPress site could turn a lovely green stream of output into a striped red mess.

I have found quite a few that throw notices and more in modern PHP releases in the official plugin repository.

You might look into this more and how it could be improved using the global ~/.wp-cli/config.yml this wp-cli.yml and possibly even a wp-cli.local.yml in each project if needed.

Config docs

@jeremyfelt
Copy link
Member

Finally tested it and I'm in love. Thanks again @EHLOVader, this is fantastic. 👍

jeremyfelt added a commit that referenced this pull request Jul 3, 2015
[PR] Add support for wp-cli outside of the VM on the host machine
@jeremyfelt jeremyfelt merged commit 53e3698 into Varying-Vagrant-Vagrants:master Jul 3, 2015
@EHLOVader
Copy link
Contributor Author

:feelsgood:

You have a chance to look into those various configs you could stash in the parent folders locally and on the server? Also looking over it again the config references vvv.dev.

Did you remove the .dev in response to DNS issues in a more recent issue/PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants