LibraLibra
LibraLibra
DocsBlogLibra
Getting Started
Architecture
Design
Commands
libra addlibra agentlibra alternateslibra applylibra archivelibra authlibra automationlibra bisectlibra blamelibra branchlibra bundlelibra cachelibra cat-filelibra check-attrlibra check-ignorelibra check-mailmaplibra checkoutlibra cherry-picklibra cleanlibra clonelibra cloudlibra code-controllibra codelibra commit-treelibra commitlibra completionslibra configlibra credentiallibra depslibra describelibra diff-fileslibra diff-indexlibra diff-treelibra difflibra dirtylibra fast-exportlibra fast-importlibra fetchlibra filelibra for-each-reflibra format-patchlibra fscklibra gclibra graphlibra greplibra hash-objectlibra hookslibra hydratelibra index-packlibra initlibra investigatelibra layerlibra lfslibra loglibra logfilelibra loginlibra logoutlibra ls-fileslibra ls-remotelibra ls-treelibra maintenancelibra medialibra merge-baselibra merge-filelibra mergelibra metadatalibra mvlibra noteslibra oplibra openlibra pack-objectslibra packagelibra prunelibra publishlibra pulllibra pushlibra read-treelibra rebaselibra refloglibra remotelibra repacklibra replacelibra rererelibra resetlibra restorelibra rev-listlibra rev-parselibra revertlibra reviewlibra revisionlibra rmlibra sandboxlibra servicelibra shortloglibra show-reflibra showlibra sparse-viewlibra stashlibra statslibra statuslibra switchlibra symbolic-reflibra taglibra update-indexlibra update-reflibra usagelibra verify-packlibra whoamilibra worktreelibra write-tree
API Reference
Policy
Commands

libra login

Command reference for `libra login`

Authenticate to a Libra host and store a host-scoped session token.

libra login is a Libra-only extension (no Git equivalent). It performs a browser-redirect (PKCE-style) flow against the host's /api/cli/* endpoints and stores the resulting session token under account.host.<host_sha256> in the global config. It is independent of the D1/R2/Cloudflare credentials used by cloud / publish.

It always binds a same-machine loopback listener and waits for the browser redirect callback, so it requires a session on the local machine (remote/SSH sessions are unsupported).

Options

FlagDescription
--host <url>Target host (defaults to the built-in host)
--no-browserPrint the login URL to open manually instead of launching a browser; the loopback callback is still required

The flow times out after 15 minutes.

Examples

libra login
libra login --host https://libra.tools --no-browser

libra logfile

Command reference for `libra logfile`

libra logout

Command reference for `libra logout`

On this page

OptionsExamples