Factordocs

Installing the CLI

One binary, four ways to get it.

factor is a single binary with no runtime to install alongside it. Pick whichever line matches your machine.

macOS and Linux

Homebrew
brew install --cask feweir/tap/factor

Homebrew keeps it updated with everything else you have (brew upgrade), which is the reason to prefer it.

On Linux there is also a script:

Install script — Linux
curl -fsSL https://getfactor.dev/install.sh | sh

It picks the right build for your architecture, checks the checksum of what it downloads, and puts it in /usr/local/bin — or ~/.local/bin if you are not root. Read it first if you would rather; piping a URL into a shell deserves a look either way.

Windows

Scoop
scoop bucket add feweir https://github.com/feweir/scoop-bucketscoop install factor

Direct download

Every release publishes signed archives for macOS, Linux and Windows on the releases page. Unpack it and put factor somewhere on your PATH.

Check it

factor --version

Sign in

factor auth login

Your browser opens and hands a token back to a listener on 127.0.0.1. The token is posted to that listener rather than passed on a redirect: query strings end up in browser history, referrer headers and any proxy in between.

It lands in ~/.factor/credentials with 0600 permissions, and the CLI refuses to use the file if the permissions are looser than that.

factor auth status
Signed in as you@example.comTeam  org_01M0JKXAKSMA0KMTWASY6V0X5WToken fk_a1b2c3d4…  (created 2 minutes ago)

Signing in on a machine with no browser

A build server, or a box you are on over SSH. Create a token in the dashboard under Tokens, then:

factor auth login --token fk_…

Uninstalling

factor auth logout          # revokes this machine's token, server-sidebrew uninstall --cask factory

logout revokes the token rather than only deleting the local file, so a copy of the file taken beforehand is worthless afterwards.