Skip to main content

Setup

Install the command​

Install Modular with the automatic-install desktop artifact for your platform:

  • Linux: install the DEB package. It registers modular under /usr/bin.
  • macOS: install the signed PKG. It registers modular under /usr/local/bin.
  • Windows: run the signed per-user setup. It adds the installed app's bin directory to your user PATH and 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 -
OptionEffect
--new-window, -nopen a new window
--reuse-window, -rreuse the last active window
--wait, -wwait until opened files close
--goto, -gopen file:line[:character]
--diff, -dcompare 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.