← All changes
feature· API

Log in to the CLI through your browser

sinatra login now opens a Sinatra page in your browser and logs the CLI in once you approve it, with no personal access token to create or paste.

Tokens still work: sinatra login --token asks for one, and a token piped in (sinatra login < token-file) is read as before, which is what scripts and CI should keep using. The browser has to be on the same computer as the CLI, so on a machine you reach over SSH, log in with a token instead. A logged-in CLI is listed as Sinatra CLI under Connected apps on the CLI & API page, where Disconnect signs it out at once, and it has to sign in again after 90 days, or after 30 days without use. It's in version 0.2.0 of the CLI; run npm i -g sinatra.dev to update.

#1995, #1997