# \#cli

**URL:** https://community.localwp.com/tag/cli/49.md

[Latest](https://community.localwp.com/latest.md) · [Categories](https://community.localwp.com/categories.md) · [Tags](https://community.localwp.com/tags.md)

---

## [LocalWP CLI - allowing only "apache" as the web-server when creating a site](https://community.localwp.com/t/localwp-cli-allowing-only-apache-as-the-web-server-when-creating-a-site/52739)

<div class="topic-metadata">

**Author:** [@rhubarb](https://community.localwp.com/u/rhubarb)\
**Replies:** 1\
**Last updated:** [November 12, 2026, 4:45pm UTC](https://community.localwp.com/t/localwp-cli-allowing-only-apache-as-the-web-server-when-creating-a-site/52739 "2026-11-12T16:45:36Z")

</div>

Right now, when creating a site with localwp CLI, the default is Nginx. If I want the site to use Apache, I need to know the version of Apache that is available. This isn’t really practical (unless there is a command to…

---

## [Using direnv with Local](https://community.localwp.com/t/using-direnv-with-local/52246)

<div class="topic-metadata">

**Author:** [@ben.turner](https://community.localwp.com/u/ben.turner)\
**Replies:** 0\
**Last updated:** [June 2, 2026, 9:09pm UTC](https://community.localwp.com/t/using-direnv-with-local/52246 "2026-06-02T21:09:54Z")

</div>

By default, using tools like wpcli with a Local site requires clicking the “Site Shell” button for any site you want to work with. This can become tedious when changing between multiple sites with the same primary termin…

---

## [WP CLI could not create temporary file for media import](https://community.localwp.com/t/wp-cli-could-not-create-temporary-file-for-media-import/36059)

<div class="topic-metadata">

**Author:** [@moodacow](https://community.localwp.com/u/moodacow)\
**Replies:** 1\
**Last updated:** [March 22, 2023, 5:13pm UTC](https://community.localwp.com/t/wp-cli-could-not-create-temporary-file-for-media-import/36059 "2023-03-22T17:13:54Z")

</div>

Hello, After having downloaded a lot of images in the uploads folder without using the export/import function from Wordpress or any plugin, I would like to load them in the website. For this, I wan’t to use WP CLI and …

---

## [SSH uses macOS PHP instead of the Local PHP](https://community.localwp.com/t/ssh-uses-macos-php-instead-of-the-local-php/33645)

<div class="topic-metadata">

**Author:** [@sc0ttkclark](https://community.localwp.com/u/sc0ttkclark)\
**Replies:** 1\
**Last updated:** [October 25, 2022, 5:19pm UTC](https://community.localwp.com/t/ssh-uses-macos-php-instead-of-the-local-php/33645 "2022-10-25T17:19:10Z")

</div>

Bug Summary When I open the Site Shell, I see it’s using PHP 8.1 (what I have on my macOS locally) instead of PHP 8.0.22 (what I have on the Local site). Steps to reproduce PHP 8.0.22 is set on my local site Click “Ope…

---

## [Recommendation for inclusion in image's .bashrc](https://community.localwp.com/t/recommendation-for-inclusion-in-images-bashrc/236)

<div class="topic-metadata">

**Author:** [@michael](https://community.localwp.com/u/michael)\
**Replies:** 1\
**Last updated:** [May 13, 2021, 9:55pm UTC](https://community.localwp.com/t/recommendation-for-inclusion-in-images-bashrc/236 "2021-05-13T21:55:40Z")

</div>

It would be awesome if the following could be included in the image /root/.bashrc file. It will (1) Set the prompt to root@$THE\_HOSTNAME:/path and (2) Make it so that the default directory for new terminal sessions wo…

---

## [Can I Use Lightning-Services Outside Open Site Shell?](https://community.localwp.com/t/can-i-use-lightning-services-outside-open-site-shell/24093)

<div class="topic-metadata">

**Author:** [@alexclst](https://community.localwp.com/u/alexclst)\
**Replies:** 0\
**Last updated:** [January 26, 2021, 10:59pm UTC](https://community.localwp.com/t/can-i-use-lightning-services-outside-open-site-shell/24093 "2021-01-26T22:59:56Z")

</div>

With the modern Local I’ve taken to just cd-ing to site folders and using the “normal” Terminal rather than relying on the Open Site Shell feature. This is especially convenient when using the integrated terminal in VS C…

---

## [Run wp-cli of a local site via non-interactive script](https://community.localwp.com/t/run-wp-cli-of-a-local-site-via-non-interactive-script/22227)

<div class="topic-metadata">

**Author:** [@stracker.phil](https://community.localwp.com/u/stracker.phil)\
**Replies:** 2\
**Last updated:** [September 25, 2020, 7:51pm UTC](https://community.localwp.com/t/run-wp-cli-of-a-local-site-via-non-interactive-script/22227 "2020-09-25T19:51:39Z")

</div>

I like to automate some test routines and need to provision several local sites automatically. I know that I can manually right-click and open a site shell to run wp-cli commands for that site. However, I’m looking for …

---

## [Command line Local 5.6.6](https://community.localwp.com/t/command-line-local-5-6-6/21026)

<div class="topic-metadata">

**Author:** [@bkankur](https://community.localwp.com/u/bkankur)\
**Replies:** 2\
**Last updated:** [July 30, 2020, 7:21am UTC](https://community.localwp.com/t/command-line-local-5-6-6/21026 "2020-07-30T07:21:01Z")

</div>

Hello Team, Being an happy user, I would like to know if there is any CLI access to the Local instance? The scenario is, I have linux server running in home environment which is only command line access and I want to ru…

---

## [MU-Migration cannot get tables](https://community.localwp.com/t/mu-migration-cannot-get-tables/17489)

<div class="topic-metadata">

**Author:** [@patbell101](https://community.localwp.com/u/patbell101)\
**Replies:** 0\
**Last updated:** [February 21, 2020, 10:41am UTC](https://community.localwp.com/t/mu-migration-cannot-get-tables/17489 "2020-02-21T10:41:15Z")

</div>

I am just trying out Local - again, after poor performance of the previous version (for me). I created a new site and, mu-migration os important for me so I tried it out. SSH and trying wp mu-migration export all star…

---

## [Add phpStorm or "add your own" Terminal App](https://community.localwp.com/t/add-phpstorm-or-add-your-own-terminal-app/134)

<div class="topic-metadata">

**Author:** [@shrinkray](https://community.localwp.com/u/shrinkray)\
**Replies:** 1\
**Last updated:** [December 5, 2016, 11:03am UTC](https://community.localwp.com/t/add-phpstorm-or-add-your-own-terminal-app/134 "2016-12-05T11:03:17Z")

</div>

I would like to be able to integrate my ‘All in one’ editor, JetBrains phpStorm or other terminal enabled tools as options, not just Terminal and iTerm. I’m not the most efficient in Docker nor Debian for that matter. T…
