Skip to content

Announcing OAuth Device Authorization for the Appwrite CLI: Log in from your browser_

The Appwrite CLI now signs you in through your browser. Confirm a device code, review permissions, and authorize, without typing credentials into your terminal.

4 min read

Signing in to a CLI should not mean typing your account password into a terminal prompt. Your identity already lives in your browser, and that is where authentication should happen.

Today, we are announcing OAuth Device Authorization for the Appwrite CLI. Running appwrite login now hands the sign-in process to your browser, so you can authenticate the CLI with the account session you already trust.

How it works

The new flow follows the OAuth 2.0 device authorization pattern. Run appwrite login, and the CLI displays a device code and a URL, then waits for approval.

The Appwrite CLI displaying a device code and URL
The Appwrite CLI displaying a device code and URL

Press Enter to open the URL, or copy it into any browser. Confirm the code on the page matches the one in your terminal and click Continue.

Confirming the device code in the browser
Confirming the device code in the browser

Review the permissions the CLI requests and click Authorize. Once approved, the CLI detects the authorization and finishes signing you in.

Authorizing the Appwrite CLI in the Console
Authorizing the Appwrite CLI in the Console

Before the CLI can act on your behalf, the browser shows you exactly what access you are granting: viewing your identity and fully managing your Appwrite account.

Authorization is also reversible. You can revoke the CLI's access anytime from your Appwrite account settings.

Get started

Update the Appwrite CLI to the latest version and run:

Bash
appwrite login

The CLI installation guide walks through every step with screenshots.

More resources

Read next

Introducing Appwrite Explorer

Eldad Fux

Appwrite Explorer brings the Appwrite REST API into the Console. Browse every endpoint, build requests with guided forms, send live calls against your project, and inspect responses without leaving the browser.

8 min read

Introducing Appwrite Terminal

Eldad Fux

Appwrite Terminal runs the Appwrite CLI directly inside the Console. Your session and project context are preconfigured, with keyboard-first controls and multi-tab workflows, so you can inspect resources without leaving the project.

7 min read

Ready to build?_