All apps/fnm

fnm

fnm

Fast Node Manager, a Node.js version manager written in Rust.

Runs as fnm|macOS, Linux, Windows|github.com

Command form

ai-draft · 6 tasks · 12 fields

Install, switch and run Node.js versions. Aliases, completions and env setup are left out.

Opens the form; the finished command lands at your prompt, unrun
otty gui fnm

fnm install

Install Node.js

Install a Node.js version, or the latest LTS.

Install Node.jsExample values, fixed in this page — nothing here reaches a terminal
Basic
Version*
string
TasksEach one presets the form for one job
Install a version
version
Install latest LTS
lts
ParametersOnly these flags are editable in the form
Version
Partial semver or an LTS name such as lts/iron. Leave empty to use the version file.
string · positional 0
Latest LTS
boolean
--lts
Architecture
string
--archx86x64arm64armv7lppc64leppc64s390x

fnm use

Use a version

Switch the current shell to a Node.js version.

Use a versionExample values, fixed in this page — nothing here reaches a terminal
Basic
Version*
string
Install if missing
--install-if-missing
TasksEach one presets the form for one job
Use a version
versioninstall_if_missing
ParametersOnly these flags are editable in the form
Version
string · positional 0
Install if missing
boolean
--install-if-missing
Latest LTS
boolean
--lts

fnm default

Set default version

Make a version the default for new shells.

Set default versionExample values, fixed in this page — nothing here reaches a terminal
Basic
Version*
string
TasksEach one presets the form for one job
Set default
version
ParametersOnly these flags are editable in the form
Version
string · positional 0

fnm list-remote

List remote versions

List Node.js versions available to install.

List remote versionsExample values, fixed in this page — nothing here reaches a terminal
TasksEach one presets the form for one job
List remote versions
ParametersOnly these flags are editable in the form
Architecture
string
--archx86x64arm64armv7lppc64leppc64s390x
Node dist mirror
string
--node-dist-mirror

fnm exec

Run in fnm context

Run a command with a chosen Node.js version.

Run in fnm contextExample values, fixed in this page — nothing here reaches a terminal
Basic
Version*
string
Command*
string
TasksEach one presets the form for one job
Run with version
usingcommand
ParametersOnly these flags are editable in the form
Version
string
--using
Latest LTS
boolean
--lts
Command
string · positional 0 · repeatable
SourcesEvery flag above is checked against these
fig
completion

github.com

fig
completion

github.com

fig
completion

github.com

fig
completion

github.com

fig
completion

github.com

fig
completion

github.com

Before it fills your prompt, Otty checks the installed fnm against its version. A form that does not match your version is not offered.