loom) provides command-line access to manage your local development stack directly from your terminal. It’s integrated into the main Envloom application and shares the same binary.
Installation
Theloom command is automatically available when you install Envloom. The CLI uses a shim located in your bin directory that calls the main Envloom executable with the --cli flag.
Verifying Installation
Check that the CLI is properly installed:Basic Usage
The CLI follows a simple command structure:Available Commands
current
Display current versions of all runtimes
list
List installed versions of a specific runtime
php
Switch the current PHP version
node
Switch the current Node.js version
link
Link the current directory as an Envloom site
unlink
Unlink the current directory from Envloom
ssl
Enable or disable SSL for the current site
Quick Examples
Check Current Versions
List Installed PHP Versions
Switch PHP Version
Link Current Directory
Navigate to your project directory and link it with a specific PHP version:How It Works
Theloom CLI is a wrapper script that:
- Locates the Envloom executable (production or development build)
- Passes all arguments to the executable with the
--cliflag - Shares the same configuration and state as the GUI application
CLI commands operate on the same data as the GUI. Changes made via CLI are immediately reflected in the desktop app and vice versa.
Command Categories
The CLI commands are organized into three main categories:Runtime Management
Commands for viewing and switching runtime versions:loom current- View current versionsloom list <runtime>- List installed versionsloom php <version>- Switch PHP versionloom node <version>- Switch Node version
Site Management
Commands for managing local development sites:loom link <php-version>- Link current directoryloom unlink- Unlink current directoryloom ssl <on|off>- Toggle SSL for current site
Configuration
The CLI uses the following paths:Location of runtime binaries and shimsProduction:
Development:
C:\Program Files\Envloom\binDevelopment:
<project>\src-tauri\binGlobal configuration and site dataLocation:
Key files:
%LOCALAPPDATA%\EnvloomKey files:
sites.json, runtime state filesUser-specific global settingsLocation:
Key files:
%USERPROFILE%\.envloomKey files:
config.jsonError Handling
The CLI provides clear error messages when operations fail:Next Steps
Runtime Management
Learn how to manage PHP, Node, and MySQL versions
Site Management
Link projects and configure local sites