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

Set wpcli_args on wp db import. #33

Open
landerss0n opened this issue Feb 16, 2016 · 3 comments
Open

Set wpcli_args on wp db import. #33

landerss0n opened this issue Feb 16, 2016 · 3 comments
Assignees
Labels

Comments

@landerss0n
Copy link

Hi!

I want to set wpcli_args on the wp db import. E.g. wp db import --skip-plugins.
Is this possible atm?

@jeremyzahner
Copy link
Collaborator

Hi @landerss0n.

Under the Configuration section in the readme you can find out how to do it. Its pretty simple actually:

set :wpcli_args

You can pass arguments directly to WPCLI using this var.

Defaults to ENV['WPCLI_ARGS']

Feel free to close this issue if that works out for you!

@jeremyzahner jeremyzahner self-assigned this Feb 17, 2016
@landerss0n
Copy link
Author

I've checked the source code and execute :wp, "search-replace" is the only task that fetchs wpcli_args?

@soifou
Copy link

soifou commented Mar 15, 2016

+1 on this, wpcli_args is not fetched for database operations.

I use multiconfig for centralized deployments and it is not possible to set the wordpress path via --path directive.

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

No branches or pull requests

3 participants