Skip to content

Command line

Ali Çömez | Slaweally edited this page Dec 1, 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.

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