Skip to content

junkie 0.2.0

Choose a tag to compare

@github-actions github-actions released this 11 Sep 10:11
· 11 commits to master since this release

Signing in no longer asks for your password.

junkie login now shows a short code and waits while you approve it in a browser that is already signed in:

  your code  2HA5-6AM8

  Approve it at https://junkie-blin.onrender.com/cli
  waiting for approval…

The browser does not have to be on the same machine. On a server you reached over SSH, read the code off the screen and approve it on your laptop or your phone — the code is what ties the two together. L inside the desk works the same way.

  • Your password is never typed into the terminal.
  • The pairing code expires in 10 minutes, is single use, and the approval page never approves on its own — the click is the point.
  • junkie logout still ends the session immediately, and so does changing your password.
  • junkie login --password keeps the old flow, for a self-hosted server too old to offer this.

Also in this release

Install

curl -fsSL https://raw.githubusercontent.com/samnodier/junkie/master/install.sh | sh

Puts a junkie binary in ~/.local/bin (set JUNKIE_INSTALL_DIR to choose elsewhere) and verifies it against checksums.txt below. Re-running the same command upgrades in place. Works on macOS and on any Linux distribution, WSL included — the binaries are static, so there is no glibc requirement.

On Windows, download junkie_windows_amd64.zip and put junkie.exe on your PATH.