Skip to content

Command line

Ali Çömez | Slaweally edited this page Dec 2, 2026 · 2 revisions

Command line

Use the tools in any terminal

Settings → Command line → tick the box. Locarust adds C:\Locarust\bin\shims to your user PATH once. Open a new terminal and these commands point to the versions selected in Locarust:

php · composer · mysql · mysqldump · mariadb · psql · pg_dump · createdb · redis-cli · node · npm · npx · corepack · python · go · gofmt

Switching a version in Components only rewrites the shims — no sign-out, no PATH change.

Open terminal starts a command window in www with the shims first on PATH, even without the checkbox; Git Bash and VS Code appear next to it when installed.

Per project

Every project row has a terminal button (and VS Code when installed); the project settings panel adds Git Bash. They open in the project folder, and there php and composer are that project's PHP version — handy when one project runs PHP 7.4 and the rest 8.5.

The shims also work in Git Bash (each tool has an extensionless sh script next to the .cmd).

Examples

php -v
composer create-project laravel/laravel my-app
cd my-app && php artisan migrate
mysql -u root -e "SHOW DATABASES"
mysqldump -u root my_shop > my_shop.sql
psql -U postgres

Notes

  • php in the terminal uses the same php.ini settings as the sites (extensions, limits).
  • The terminal php is the default PHP version. For a project on another version, call that version directly: C:\Locarust\bin\php\<version>\php.exe.
  • Untick the box to remove the shims from PATH; other PATH entries are never touched.

Clone this wiki locally