Setup
Install the command
Install Modular with the automatic-install desktop artifact for your platform:
- Linux: install the DEB package. It registers
modularunder/usr/bin. - macOS: install the signed PKG. It registers
modularunder/usr/local/bin. - Windows: run the signed per-user setup. It adds the installed app's
bindirectory to your userPATHand registers the matching App Paths entry.
Stable, beta, and canary are release tracks of the same installed modular
command. Installing another public track replaces that product; public tracks
cannot be installed side by side. Development and internal repository builds
never register a system command. The installer refuses to overwrite a foreign
command. ZIP, DMG, and unpacked artifacts do not modify PATH.
Open a workspace
modular . modular /home/me/project modular --new-window /home/me/other-project
Useful file operations:
modular --goto src/mod.ts:42:7 modular --diff before.ts after.ts printf 'scratch text' | modular -
| Option | Effect |
|---|---|
--new-window, -n | open a new window |
--reuse-window, -r | reuse the last active window |
--wait, -w | wait until opened files close |
--goto, -g | open file:line[:character] |
--diff, -d | compare two files |
Check the installation
modular --version modular status
--version prints the version compiled into the CLI shipped with the installed
desktop. status prints running-process diagnostics. Updating, downgrading,
repairing, or removing the desktop application updates or removes its CLI in
the same installer transaction; the CLI does not update itself independently.
On macOS, removal is performed by the signed removal PKG shipped beside the
install PKG; it removes /Applications/Modular.app and only the exact
installer-owned /usr/local/bin/modular link.
Run modular --help for startup diagnostics, logging, and extension-host
inspection options.