CLI For Local itself?

I could have sworn that local had a CLI for itself but all I see if WP-CLI on a site per site basis.

I want to be able to make a new Local site via the command line. Is this possible?

Thanks,
Dan

Thanks for asking about this, @schutzsmith.

I switched this topic to a feature request so others can vote for it if they wish.

Local had a CLI in the form of the local-cli JavaScript package, but it’s currently archived due to lack of usage. The Local team will keep track of this request to see if there’s growing interest in making something new, but right now there’s no official CLI for Local that supports adding sites.

1 Like

OK, thanks! With the ability to use AI to work with any CLI, it would be great to have this ability back in Local.

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.

Local 10.2 is out now, with a CLI called localwp! It helps humans and agents control Local from the command line.

The CLI is off by default. Install it from Preferences → Advanced → “Install Local CLI”.

10.2 supports starting, stopping, creating, and running WP-CLI commands on sites.

It works on Windows, macOS, and Linux.

See the command list with localwp help or learn more here:

1 Like