Install Moji and find your first font
Install the CLI, inspect a ranked result, and download a validated font.
This tutorial takes you from installation to a downloaded font. You need a terminal and npm, pnpm, or Bun. You do not need Go.
1. Install the CLI
Use one package manager.
npm
npm install --global @microck/mojipnpm
pnpm add --global @microck/mojiBun
bun add --global @microck/mojiConfirm that the launcher can find its bundled binary:
moji --versionThe command prints 0.1.0.
2. Search interactively
Search for the Inter family:
moji "Inter"In a terminal, Moji opens its live result interface. Use:
upanddownto move between resultsenterto inspect the selected filefto cycle the format filter/to filter the current resultstabto change sortingqto exit
Provider statuses change as results arrive. A provider failure does not discard results returned by another provider.
3. Preview a non-interactive choice
Ask Moji to choose a bold face without downloading:
moji get "Inter bold" --dry-runThe output begins with Would download: and lists the selected format, weight,
source, size when known, and license hint.
4. Download the result
Run the same command without --dry-run:
moji get "Inter bold"The default destination is ~/Downloads/moji. A successful download reports
its final path.
Before the file reaches that path, Moji:
- requires HTTPS unless you explicitly allow HTTP;
- limits redirects and download size;
- checks the font signature;
- writes to a temporary file;
- atomically moves the validated file into place; and
- deduplicates matching content by SHA-256.
You now have a validated font file and know how to inspect the result before downloading it.