CLI for Local, the #1 local WordPress development tool.
- Local 5.9.2 or newer, which introduced the Local GraphQL API
- Node.js
- NPM/Yarn
$ npm install -g @getflywheel/local-cli
$ local-cli COMMAND
running command...
$ local-cli (-v|--version|version)
@getflywheel/local-cli/0.0.5 darwin-x64 node-v12.13.0
$ local-cli --help [COMMAND]
USAGE
$ local-cli COMMAND
...
local-cli help [COMMAND]
local-cli list-sites
local-cli start-site SITEID
local-cli stop-site SITEID
display help for local-cli
USAGE
$ local-cli help [COMMAND]
ARGUMENTS
COMMAND command to show help for
OPTIONS
--all see all commands in CLI
See code: @oclif/plugin-help
list all Local sites
USAGE
$ local-cli list-sites
EXAMPLE
$ local-cli list
See code: src/commands/list-sites.ts
start a Local site and all of its services
USAGE
$ local-cli start-site SITEID
EXAMPLE
$ local-cli start-site 6mC6PsMCh
See code: src/commands/start-site.ts
stop a Local site and all of its services
USAGE
$ local-cli stop-site SITEID
OPTIONS
-h, --help show CLI help
See code: src/commands/stop-site.ts