Skip to content

docs(cli): add Danish quickstart guide and discovery links - #13681

Merged
kodjima33 merged 2 commits into
BasedHardware:mainfrom
Yi770809:docs/danish-quickstart
Sep 14, 2026
Merged

kodjima33 merged 2 commits into
BasedHardware:mainfrom
Yi770809:docs/danish-quickstart

Conversation

@Yi770809

@Yi770809 Yi770809 commented Sep 13, 2026 •

Copy link
Copy Markdown
Contributor

Resolves #13680

What changed and why

Adds a Danish (da) quickstart guide for omi-cli (sdks/python-cli/examples/quickstart.da.md), following the same structure as the already-merged localized quickstarts, and adds Danish discovery links in sdks/python-cli/README.md and sdks/python-cli/examples/README.md.

Content covered:

  • Installation (pipx / pip) and the omi-cli package vs omi command distinction, with a PATH troubleshooting note.
  • Interactive login (browser or developer API key), auth status vs auth whoami, the ~/.omi/config.toml note, OMI_API_KEY for automation, and auth logout (local credential removal vs server-side key revocation).
  • The four read-only resource lists (memories, conversations, action items, goals) plus an empty-list note.
  • --json output with the global placement rule, --offset pagination, and file-export caveats.
  • --profile / -p with the OMI_PROFILE fallback order.
  • The stable exit-code table (0-5) with practical notes for codes 2/3/4/5.

Product invariants affected

none

How it was verified

  • Every command, flag, and claim was checked against the CLI source at the merge base (commit 6cd3dd6).
  • Ran the CLI from this repository in a clean virtual environment (omi-cli 0.3.0): version/help paths plus help for memory, conversation, action-item, goal, auth, local, and config.
  • Observed exit-code behaviors: omi auth status without credentials -> exit 0 (reports not authenticated); omi auth login --browser --api-key ... -> exit 1 (CLI usage error); omi --nope -> exit 2 (Click parse error); omi memory list without credentials -> exit 2 (auth error); omi --json version -> exit 0 (JSON output).
  • No live Omi account, API key, or network calls to Omi were used; no authenticated API behavior is claimed.

Tests

No automated test change: documentation-only change (one new Markdown file plus two link lines). The user-facing commands described in the guide were exercised manually as listed above.

Failure class (fixes)

Failure-Class: none

Notes

  • All commands and flags remain in English; only the prose is translated.
  • AI-assisted contribution prepared under the account owner's authorization, with disclosure.

Review in cubic

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 3 files

Reply with feedback, questions, or to request a fix.

Re-trigger cubic

@Git-on-my-level Git-on-my-level left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for a well-structured guide — it follows the established quickstart pattern closely. I checked the command surface against the CLI source at this head: the memory / conversation / action-item / goal examples (including goal progress taking both the goal ID and the value), the masked API-key prompt in auth login, the OMI_API_KEY fallback semantics (only used when the active profile has no stored key) and OMI_PROFILE precedence all match the implementation, and the local / config examples are accurate. The discovery links added in sdks/python-cli/README.md and sdks/python-cli/examples/README.md resolve correctly.

Two accuracy fixes are needed before merge, both in sdks/python-cli/examples/quickstart.da.md:

  1. Exit-code table (section 5). Row 1 maps "Ugyldigt flag, manglende argument" (invalid flag, missing argument) to code 1, but parse-level errors actually exit 2: omi_cli/main.py catches click.ClickException and exits with Click's own exit code, which is 2 for usage errors such as unknown flags or missing arguments. Your own PR description observed this (omi --nope → exit 2). Practical consequence: the bash example right below the table prints "log ind igen" (log in again) for a simple flag typo, because parse errors and auth errors both land on 2. Suggested fix: scope row 1 to omi-cli's own validation errors (mutually exclusive --browser/--api-key, invalid login choice, empty stdin input) and note that unknown flags / missing arguments exit 2 under Click. The English README's exit-code block shares the same wording, so a follow-up correction there would be welcome too — not blocking this PR.

  2. omi auth refresh (section 2). It's documented unconditionally ("Opdater et udløbende token uden at logge ind igen"), but it only applies to browser/OAuth logins: for API-key profiles the command raises "Nothing to refresh" (exit 1), and its own help text says "no-op for API-key profiles". Since this guide recommends API keys for CI/agents, please qualify the sentence so API-key users aren't surprised by an error.

Both are small text edits; everything else verified clean.

For maintainers: this PR resolves #13680, an open bounty proposal ($25 after merge) that hasn't been confirmed yet — bounty acceptance needs maintainer sign-off before merge.


by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with need human response.

@Git-on-my-level Git-on-my-level added docs-accuracy Documentation or committed reports need accuracy fixes needs-maintainer-review Needs a human maintainer to sign off before merge i18n Internationalization / localization changes labels Sep 13, 2026

@kodjima33 kodjima33 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Danish quickstart — well-researched, but cubic and a reviewer both flagged two factual inaccuracies (exit-code table conflates Click's usage-error code 2 with the CLI's own validation code 1; 'auth refresh' documented as unconditional when it's OAuth-only). Approving only per docs-correctness gate; author should fix the two callouts before merge.

@Yi770809

Copy link
Copy Markdown
Contributor Author

Both flagged issues are fixed in commit 09e1a7b:

  1. Exit-code table (section 5): row 1 now scopes to omi-cli's own validation errors (mutually exclusive --browser/--api-key, invalid login choice, empty stdin), with a note that unknown flags / missing arguments exit 2 via Click's UsageError.
  2. omi auth refresh (section 2): now qualified as browser-login/OAuth-only, so API-key users aren't surprised by "Nothing to refresh".

Thanks @Git-on-my-level for the source-level verification, and @cubic-dev-ai for the catches. Happy to follow up on the English README wording separately.

@cubic-dev-ai

cubic-dev-ai Bot commented Sep 14, 2026

Copy link
Copy Markdown

Both flagged issues are fixed in commit 09e1a7b:

  1. Exit-code table (section 5): row 1 now scopes to omi-cli's own validation errors (mutually exclusive --browser/--api-key, invalid login choice, empty stdin), with a note that unknown flags / missing arguments exit 2 via Click's UsageError.
  2. omi auth refresh (section 2): now qualified as browser-login/OAuth-only, so API-key users aren't surprised by "Nothing to refresh".

...

@Yi770809 Both fixes land in the diff, and they line up with what the CLI actually does, so I'm satisfied.

On the exit-code table: row 1 is now scoped to omi-cli's own validation (--browser+--api-key together, invalid login choice, empty stdin → 1), and the notes correctly separate Click's parse errors (unknown flags, missing args → 2) from the access-error code (not logged in, bad key → 2). That matches your observed runs and the --nope vs missing-credentials distinction.

On auth refresh: the "kun relevant for browser-login/OAuth" qualifier is the right call — it prevents API-key users from staring down a "Nothing to refresh" surprise, and it doesn't overclaim for the non-OAuth path.

Nothing left for me to flag in the Danish file. The separate README-wording follow-up is reasonable to track on its own; it's orthogonal to both of these fixes.

Tip: get faster answers by chatting with cubic’s review copilot in the review UI

@kodjima33 kodjima33 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Danish quickstart — the two factual inaccuracies flagged by cubic/reviewer (exit-code table conflating Click's own usage-error code 2 with the CLI's validation code 1; 'auth refresh' documented as unconditional when it's OAuth-only) were fixed in the latest commit. Independently re-verified against omi_cli/main.py and errors.py: both corrections are accurate. Docs-correctness gate passed — merging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs-accuracy Documentation or committed reports need accuracy fixes i18n Internationalization / localization changes needs-maintainer-review Needs a human maintainer to sign off before merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bounty proposal] Danish quickstart for omi-cli ($25 proposed)

3 participants