Skip to content

docs(cli): match the install page to the new installer (OSS-69) - #401

Open
adityamishra-hydradb wants to merge 4 commits into
mainfrom
adityamishra/oss-69-cli-install
Open

adityamishra-hydradb wants to merge 4 commits into
mainfrom
adityamishra/oss-69-cli-install

Conversation

@adityamishra-hydradb

@adityamishra-hydradb adityamishra-hydradb commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

For humans

Merge together with hydradb-cli PR 55. This page describes the new installer. Before that PR is merged, the live installer does not behave like this page.

The CLI page (plugins/cli.mdx) now matches the installer in hydradb-cli PR 55 (Linear OSS-69):

  • Install order: pipx, then a private venv, then pip install --user where Python allows it; otherwise the installer stops with help.
  • Platform notes:
    • Debian/Ubuntu: a stock desktop needs python3-venv or pipx.
    • macOS: Apple's python3 is 3.9, which is too old, so install brew install [email protected] or pipx; plus the zsh PATH line.
    • Linux: the bash PATH line.
  • Pinning: curl ... | HYDRADB_CLI_VERSION=0.2.0 bash. The old form put the variable before curl, so it was silently ignored.
  • Root and Dockerfiles: use HYDRADB_CLI_ALLOW_ROOT=1.
  • New uninstall section: it removes only what the installer made, for each method.
  • list output fix (found while testing against prod): without --kind it lists knowledge only; memories come back under user_memories.

Every claim was checked against install.sh on the PR 55 branch. mint validate and mint broken-links pass.

For agents

  • Linear OSS-69. Companion code PR: hydradb-cli PR 55.
  • A later docs PR (branch adityamishra/oss-69-cli-0.2.3) adds the 0.2.3 commands after that release.

🤖 Generated with Claude Code


Run Proof on this PR
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

adityamishra-hydradb and others added 3 commits December 2, 2026 19:06
… (OSS-69)

- On Debian 12 and Ubuntu 24.04, the curl installer fails without pipx,
  because pip refuses `pip install --user` (PEP 668). Tell users to
  install pipx first.
- Show how to pin a version: the variable must be set for bash, not for
  curl.
- The release-wheel tab uses pipx. `pip install` of the URL is refused
  on the same systems unless a virtual environment is active.
- `hydradb list` without --kind returns knowledge sources only, and
  memories come back in `user_memories`. Checked against the prod API.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: adityamishra-hydradb <[email protected]>
…-69)

- The curl installer now tries pipx, then a private venv, then
  pip --user where allowed, then stops with help. Remove the old
  "falls back to pip install --user" and "install pipx first" text.
- A stock Ubuntu 24.04 or Debian 12 desktop needs python3-venv or pipx.
- macOS: Apple python3 is 3.9; brew install [email protected] or pipx.
- PATH for Linux (bash) and macOS (zsh); pin with or without a leading
  v; do not use sudo.
- New Uninstall section that removes only what the installer made, and
  says where the config and API key are.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: adityamishra-hydradb <[email protected]>
…d 2 (OSS-69)

- Show where HYDRADB_CLI_ALLOW_ROOT goes, with a Dockerfile example
  that also sets ENV PATH.
- Say what happens to an existing ~/.local/bin/hydradb, and name
  HYDRADB_CLI_FORCE.
- Uninstall: label the blocks pipx, venv and pip-user as the installer
  prints them; remove the installer's directory for every method; use
  the README wording for XDG_DATA_HOME and add HYDRADB_CLI_BIN_DIR; name
  the pip cache and pipx shared files as optional cleanup.
- Pin example uses 0.2.0, the version this page needs.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: adityamishra-hydradb <[email protected]>
@adityamishra-hydradb

Copy link
Copy Markdown
Contributor Author

@hydra-mira-review review

@adityamishra-hydradb

Copy link
Copy Markdown
Contributor Author

/devin review

@mintlify

mintlify Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
cortex-ai 🟢 Ready View Preview Dec 2, 2026, 6:55 PM

💡 Tip: Enable Automations to automatically generate PRs for you.

@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown

✅ Mintlify Hygiene

No issues found.

@hydra-mira-review

hydra-mira-review Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

Mira score 5/5 · 🟢 Good to merge

  • No findings in the code.
  • Ship with or after: Publish the companion installer before these instructions go live.

Users get updated CLI installation and removal instructions that match the new installer. The page also clarifies platform requirements, version pinning, root installation, and list output.

Before this ships · 1 with another PR
  • ⏳ Publish the companion installer before these instructions go live (order), needed in hydra-db/hydradb-cli and https://cli.hydradb.com/install. The PR description identifies hydradb-cli PR 55 as the required companion and states that the preceding live installer behaves differently. Merge hydradb-cli PR 55 and publish its installer before or together with deployment of this documentation.
How this PR works · 4 changes, 4 low risk

Users need installation instructions that match the new CLI installer and explain platform prerequisites. This PR documents installation, version pinning, root usage, and removal. It also corrects the documented listing defaults and memory output fields.

1. Document isolated installation and platform prerequisites · 🟢 low risk · plugins/cli.mdx

Users get platform prerequisites and shell setup instructions before installing. The page replaces the two-method fallback description with three installation methods and changes the manual installation tab to pipx.

Risk: Incorrect prerequisites or paths leave users unable to install the CLI or run it after installation.

Check:

  • Compare the fallback order and platform prerequisites with the installer shipped by hydradb-cli PR 55.

In cli.mdx:37-62, cli.mdx:74-95.

2. Explain version pinning, root installs, and file replacement · 🟢 low risk · plugins/cli.mdx

Users get explicit controls for root installs, pinned versions, and replacement of an existing executable. The examples assign installer variables to bash, with separate Dockerfile instructions.

Risk: Incorrect variable placement installs the wrong version or causes intentional root installs to stop.

Check:

  • Confirm PR 55 accepts these variables and that the Dockerfile example exposes the installed executable.

In cli.mdx:19-35, cli.mdx:64-72.

3. Add removal instructions for each installation method · 🟢 low risk · plugins/cli.mdx

Users can remove the CLI according to the installation method reported by the installer. The new section documents guarded environment deletion, custom paths, and separate credential cleanup.

Risk: Incorrect removal instructions can leave the CLI installed or delete local files that should remain.

Check:

  • Confirm PR 55 writes the documented marker and executable link, including when custom directories are configured.

In cli.mdx:145-177.

4. Correct listing defaults and memory output fields · 🟢 low risk · plugins/cli.mdx

Users are told that listing defaults to knowledge, rather than combining knowledge and memories. The page now directs memory requests to --kind memory and identifies their output array as user_memories.

Risk: Incorrect output guidance causes scripts to read the wrong array or users to overlook stored memories.

Check:

  • Check CLI JSON output for default listing and --kind memory against the documented arrays.

In cli.mdx:273, cli.mdx:355-358, cli.mdx:433-435.

Requirement check · 6 met · from the PR description
  • ✅ Document installation through pipx, then a private environment, then an allowed user installation, with help when all methods fail (met). plugins/cli.mdx:37-45 describes all three methods in order and the final stop with installation guidance.
  • ✅ Explain Debian and Ubuntu prerequisites, newer Python on macOS, and bash and zsh path setup (met). plugins/cli.mdx:47-62 supplies platform prerequisites; lines 74-87 show both shell configurations.
  • ✅ Pass the pinned version variable to bash rather than curl (met). plugins/cli.mdx:64-69 places HYDRADB_CLI_VERSION=0.2.0 directly before bash.
  • ✅ Document explicit root permission for root installs and Dockerfiles (met). plugins/cli.mdx:20-35 shows HYDRADB_CLI_ALLOW_ROOT=1 for the shell and Dockerfile, plus the container executable path.
  • ✅ Add uninstall instructions that remove only what the installer created, for each installation method (met). plugins/cli.mdx:145-177 gives method-specific commands, guarded environment deletion, custom-path guidance, and retained cache and credential details.
  • ✅ Correct the default listing scope and memory response field (met). plugins/cli.mdx:273 and lines 355-358 describe knowledge-only defaults; lines 433-435 distinguish sources from user_memories.
Check by hand · 1
  • Confirm hydradb-cli PR 55 creates venv/.installed-by-hydradb-cli-installer and deploy its installer together with this page.

Comment @hydra-mira-review help for commands.

@openhack-agent

openhack-agent Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

✅ OpenHack Summary

Security review of docs(cli): match the install page to the new installer (OSS-69). 1 changed file; 0 findings at or above the low reporting threshold.

P1: Critical 0   P2: High 0   P3: Medium 0   P4: Low 0

Confidence Score: 5/5

No reportable security findings were detected in this scan.

Security merge-readiness rubric: 1 = critical, 2 = high, 3 = medium, 4 = low, 5 = no reportable findings. This score reflects scan findings, not a guarantee of correctness or complete coverage.

Files Needing Attention: None

Important Files Changed
  • plugins/cli.mdx (modified)

Last reviewed commit: 74ce799 · View review on OpenHack


TIP: Mention @openhack-agent in a PR comment to request a review or ask a question. Use @openhack-agent fix all for every finding, or @openhack-agent fix unresolved threads for open review threads only.

@openhack-agent openhack-agent 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.

OpenHack reviewed this commit. See the OpenHack Summary for the confidence score and fix actions.

hydra-mira-review[bot]

This comment was marked as resolved.

@devin-ai-integration

Copy link
Copy Markdown
Contributor

Starting Devin Review.

Devin Review

devin-ai-integration[bot]

This comment was marked as resolved.

…OSS-69)

- Uninstall: no recursive delete of the whole hydradb-cli directory. The
  venv lines delete the venv only when the installer's marker is in it,
  then rmdir the parent only when it is empty. pipx and pip-user have no
  step for that directory.
- The venv lines read XDG_DATA_HOME themselves and quote every path, so a
  path with spaces is safe.
- The Dockerfile line runs with pipefail, so a failed curl fails the build.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: adityamishra-hydradb <[email protected]>
@adityamishra-hydradb

Copy link
Copy Markdown
Contributor Author

@hydra-mira-review review

@adityamishra-hydradb

Copy link
Copy Markdown
Contributor Author

/devin review

@devin-ai-integration

Copy link
Copy Markdown
Contributor

Starting Devin Review.

Devin Review

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Devin Review found 1 new potential issue.

Devin Review

Comment thread plugins/cli.mdx Resolved
@adityamishra-hydradb

Copy link
Copy Markdown
Contributor Author

/devin review

@devin-ai-integration

Copy link
Copy Markdown
Contributor

Starting Devin Review.

Devin Review

This branch was successfully deployed

1 active deployment
staging — 74ce799e Deployed Dec 2, 2026 by mintlify[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant