Skip to main content
alter Sign in

Install on Windows

First written 9 June 2026, revised 27 October 2026. Read as text

Install the alter CLI on Windows with a single line, run from any terminal that hosts PowerShell: Windows Terminal, the classic console, or a PowerShell tab in your editor. The installer fetches the official @truealter/cli npm package and puts the alter command on your PATH. The CLI is the whole ~alter install: it is all you need to sign in and be known.

Install

Open a terminal that runs PowerShell, Windows Terminal, the classic console, or a PowerShell tab in your editor, and run the line below. Windows PowerShell 5.1 and PowerShell 7+ both work.

 irm https://truealter.com/install.ps1 | iex

Then create your ~handle:

 alter register

If you already have a ~handle, sign in with alter login instead.

What it does

  • •Installs a pinned, checksum-protected @truealter/cli globally and puts the alter command on your PATH.
  • •If Node.js 20 or newer is missing, installs it automatically via winget, with a Chocolatey fallback.
  • •Refreshes the live session PATH in place, so the same terminal can run alter straight after install. No new window needed.
  • •Re-runs heal in place: a second run upgrades cleanly and unseats the legacy alter bin from pre-0.4.1 builds.

Node.js

The installer handles Node.js for you. If automatic install is blocked on your machine, install Node.js 20+ yourself and re-run the line above:

 winget install OpenJS.NodeJS.LTS
# or, with Chocolatey:
choco install nodejs-lts

If npm reports a permissions error, open PowerShell as Administrator and re-run the installer.

Verify

 alter --version
alter whoami

Prefer to manage Node yourself?

If you already run Node 20+, install the same package straight from the registry with npm install -g @truealter/cli. See the npm install guide for details. It is the same CLI either way.