Repository navigation
Command line
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.
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).
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-
phpin the terminal uses the same php.ini settings as the sites (extensions, limits). - The terminal
phpis 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.
Locarust · MIT © Ali Çömez (Slaweally) · Powered by Megabre · Download · Guide · Discussions
Getting started
Using Locarust
- Projects
- Apps
- Configuration
- Components and PHP extensions
- Databases
- Backups
- Publishing to a server
- Local HTTPS
- Command line
- Settings
Help
🇹🇷 Türkçe