# Launch local and start specific site using command line

**URL:** <https://community.localwp.com/t/launch-local-and-start-specific-site-using-command-line/28757>\
**Category:** Support\
**Created:** [November 10, 2021, 2:12pm UTC](https://community.localwp.com/t/launch-local-and-start-specific-site-using-command-line/28757 "2021-11-10T14:12:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mikeybinns](https://avatars.discourse-cdn.com/v4/letter/m/838e76/32.png) [@mikeybinns](https://community.localwp.com/u/mikeybinns)\
**Post date:** [November 10, 2021, 2:12pm UTC](https://community.localwp.com/t/launch-local-and-start-specific-site-using-command-line/28757/1 "2021-11-10T14:12:55Z")

</div>

I’m looking for a way to start local using an npm script.

Basically I want to be able to run “npm start” and have it boot local if it’s not already open, and then make sure a specific site is running, and start it if it isn’t.

I’m using windows, but I’m looking for a cross platform method if possible.

If this is not currently possible, I’ll change this into a feature request.

Thanks!

---

<div class="post-metadata">

**Author:** ![ben.turner](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/ben.turner/32/5366_2.png) [@ben.turner](https://community.localwp.com/u/ben.turner)\
**Post date:** [November 10, 2021, 7:12pm UTC](https://community.localwp.com/t/launch-local-and-start-specific-site-using-command-line/28757/2 "2021-11-10T19:12:40Z")

</div>

This is a great idea! I don’t think we have anything that’s wired up to do this right now, though there is an experimental Local CLI tool that might get you part of the way.

See this feature request for more details as well as a place to share your use case and up-vote!

> [@Start site through command line](http://community.localwp.com/t/start-site-through-command-line/1534):
>
> Is it possible to start/stop a site through the command line? I would like to set up a shell script and one of the steps would be starting a site, but I wasn’t sure if that was possible. Thanks!

---

<div class="post-metadata">

**Author:** ![system](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/system/32/1_2.png) [@system](https://community.localwp.com/u/system)\
**Post date:** [February 8, 2022, 7:13pm UTC](https://community.localwp.com/t/launch-local-and-start-specific-site-using-command-line/28757/3 "2022-02-08T19:13:17Z")

</div>

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