Getting started

The fastest path from zero to your first log is the init wizard.

loguro init

The wizard runs five steps in sequence:

  1. Auth — paste a pat_… Personal Access Token from /app/settings/cli-tokens. Skipped if you’re already logged in.
  2. Project — pick an existing project or create a new one. Slug is auto-generated (e.g. happy-otter).
  3. Ingestion key — generates a server key for your SDK. The secret is shown once — copy it immediately.
  4. Link — writes .loguro in the current directory so future commands resolve the project automatically.
  5. First-log examples — prints copy-paste snippets (curl, Node, Python, Go) using your real key.

End of wizard, you ship a log the next second.

Already configured?

loguro init detects existing tokens and projects, and skips parts you don’t need. Run it any time you want to add a project + key + link in one go.

Manual equivalent

If you’d rather wire things up step by step:

loguro login                                    # paste pat_…
loguro projects create "My API"                 # → slug auto-generated
loguro keys create my-api --name=server         # → server key shown ONCE
loguro link my-api                              # writes ./.loguro

After that, every command in this directory uses your PAT and the linked project automatically.

Quick sanity check

loguro logs                       # see logs as soon as your SDK ships them
loguro tail -l error              # follow errors live
loguro doctor                     # full health check
// related

See also