lynxpm install-tools
📖 Synopsis
Section titled “📖 Synopsis”sudo lynxpm install-tools [flags]Description
Section titled “Description”Automatically symlink common development tools (like node, go, bun, python) from the user’s environment to /usr/local/bin.
This is crucial because the Lynx daemon (when running in system mode) has a restricted PATH and might not see tools installed in your user’s home directory (e.g., via nvm, brew, or go install). This command bridges that gap safely.
⚙️ Flags
Section titled “⚙️ Flags”| Flag | Type | Default | Description |
|---|---|---|---|
-y, --yes | boolean | false | Automatically confirm all prompts. |
-h, --help | - | - | Show help message. |
🚀 Examples
Section titled “🚀 Examples”Scan and link tools interactively:
sudo lynxpm install-toolsScan and link tools without confirmation:
sudo lynxpm install-tools --yesHow it works
Section titled “How it works”- Scans for tools: Checks for common tools (
bun,node,npm,pnpm,yarn,go,python,rustc,cargo,java,deno, etc.). - Locates them: Uses the
SUDO_USERenvironment variable to find where these tools are installed for your specific user (even if they are in~/.nvmor~/.cargo). - Creates Symlinks: Creates symbolic links in
/usr/local/bin/pointing to the user’s tools. - Verification: Checks if the tool is already in
/usr/local/binto avoid overwriting or duplicating.
- Root Required: This command must be run with
sudobecause it writes to/usr/local/bin. - Safe: It will not overwrite existing system binaries in
/usr/local/binunless you manually remove them first.