wordless_gem icon indicating copy to clipboard operation
wordless_gem copied to clipboard

Add ability to install plugins

Open etienne opened this issue 13 years ago • 3 comments

e.g. wordless new mysite -p plugin-one,plugin-two,plugin-three or wordless new mysite --plugins=plugin-one,plugin-two,plugin-three

etienne avatar Apr 15 '12 01:04 etienne

Hi, I'm the maintainer of the wp-cli project, which already has something like this:

wp plugin install plugin-one --activate

Perhaps we can collaborate somehow.

scribu avatar May 16 '12 16:05 scribu

Thanks for reaching out. wp-cli looks like a great project and I'd love to collaborate. It's much more full-featured than my own limited WordPress tools (which were recently spun off in their own gem). What I need to figure out is how to include a PHP dependency such as wp-cli in my Ruby gem. I'm sure it's possible, I just haven't had the time to implement it in a seamless way. I'll look into it.

etienne avatar May 18 '12 13:05 etienne

I see you already have some PHP files there, so you could add wp-cli as a submodule in git and call it from your script.

Here's a rough guide on how to write wp-cli commands: https://github.com/wp-cli/wp-cli/wiki/Commands-Cookbook

The --require parameter might also come in handy.

scribu avatar May 18 '12 15:05 scribu