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
brew install --cask feweir/tap/factorHomebrew keeps it updated with everything else you have (brew upgrade), which
is the reason to prefer it.
On Linux there is also a script:
curl -fsSL https://getfactor.dev/install.sh | shIt 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 bucket add feweir https://github.com/feweir/scoop-bucketscoop install factorDirect 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 --versionSign in
factor auth loginYour 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 statusSigned 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 factorylogout revokes the token rather than only deleting the local file, so a copy
of the file taken beforehand is worthless afterwards.