lavmeiker / capistrano-wpcli

Provides command line tools to facilitate Wordpress deploy.
MIT License
117 stars 34 forks source link

Set wpcli_args on wp db import. #33

Open landerss0n opened 8 years ago

landerss0n commented 8 years ago

Hi!

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

jeremyzahner commented 8 years ago

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!

landerss0n commented 8 years ago

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

soifou commented 8 years ago

+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.