Repository navigation
feat(web): curl installer at nichedb.dev/install.sh - #190
Merged
Merged
Conversation
…db CLI curl -fsSL https://nichedb.dev/install.sh | sh installs @profullstack/nichedb globally: bun if present, else npm with Node >= 22, falling back to ~/.local instead of sudo, then checks the bin is on PATH. Re-running it upgrades. Served from apps/web/public as text/x-sh with no-cache, and added to the crawl gateway's openPaths so curl never meets a 402. The line is in the README, the CLI README, /docs/cli and llms.txt. A test pins the route, the content type and the open path. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
Author
|
Leaving this open. CI |
When ~/.bun/install/global/package.json is missing, bun add -g writes the
package into the nearest package.json above that directory, which can be
the user's ~/package.json. Create the dir and an empty {} first.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
curl -fsSL https://nichedb.dev/install.sh | sh, per the standing rule that every product serves/install.shfor its CLI.apps/web/public/install.shinstalls@profullstack/nichedb@latestglobally. It uses bun if present, otherwise npm with Node >= 22. When the npm prefix is not writable it installs into~/.localinstead of sudo, then checksnichedbis on PATH. Re-running it upgrades.routes/static.jsserves it astext/x-shwithno-cache.lib/pricing.jsadds/install.shto the gateway'sopenPaths, so curl is never answered 402.apps/cli/README.md,/docs/cliandllms.txt.routes/install-sh.test.jspins the 200, the content type, the#!body and the open path.Tested:
sh -npasses. I ran it in throwaway HOMEs on both paths (bun, and npm-only with an unwritable prefix that falls back to ~/.local), and the installednichedbran on each.Found while testing, not fixed here:
nichedb --versionwith no command prints help, because the no-command check runs before the version flag.nichedb versionworks. The CLI'sVERSIONconstant also still says0.36.0while the package is0.36.2. The script callsnichedb version.🤖 Generated with Claude Code