# Automatic CLI login

DevFeed: [Automatic CLI login](<https://devfeed.tech/articles/automatic-cli-login-307.md>)

Original publisher: [Read original article](<https://supabase.com/blog/automatic-cli-login>)

Author: Kamil Ogórek

Published: 2023-12-01T07:00:00Z

Content type: article

Language: en

Sources: [Supabase Blog](<https://devfeed.tech/sources/supabase-blog.md>)

Topics: [Command-line interface](<https://devfeed.tech/topics/cli.md>), [Supabase](<https://devfeed.tech/topics/supabase.md>), [Authentication](<https://devfeed.tech/topics/authentication.md>), [Security](<https://devfeed.tech/topics/security.md>), [API](<https://devfeed.tech/topics/api.md>), [Developer experience](<https://devfeed.tech/topics/developer-experience.md>), [Database](<https://devfeed.tech/topics/database.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [authentication](<https://devfeed.tech/tags/authentication.md>), [browser](<https://devfeed.tech/tags/browser.md>), [cli](<https://devfeed.tech/tags/cli.md>), [database](<https://devfeed.tech/tags/database.md>), [developer-experience](<https://devfeed.tech/tags/developer-experience.md>), [feature](<https://devfeed.tech/tags/feature.md>), [security](<https://devfeed.tech/tags/security.md>), [technical](<https://devfeed.tech/tags/technical.md>)

## AI overview

This article explains Supabase's automatic CLI login flow. Instead of manually generating and pasting an access token, the CLI opens a browser URL, verifies the user's dashboard authentication, and exchanges session data with the Management API. The flow uses temporary P-256 ECDH key pairs to encrypt the generated access token before it is stored and returned to the CLI.

## Source excerpt

Explore the technical implementation and security measures behind CLI's new automatic login feature.