zlx-cli
v0.1.0
Published
Temporary local CLI bin linker
Readme
symlx
Temporary CLI bin linker for local development.
What it does
symlx serve reads the current project's package.json bin entries and symlinks them into:
~/.symlx/bin
While symlx serve is running, those commands can be used from anywhere (if ~/.symlx/bin is on your PATH).
When the process exits, it removes only the links it created.
Command framework and structure
symlx uses:
commanderfor command orchestration and typed options.promptsfor interactive/TUI collision handling.
Project layout:
src/commandscommand handlerssrc/servicesbin/session/lifecycle servicessrc/coreshared types/path helperssrc/uiterminal UI prompts/logging
Usage
npx symlx serveor if installed globally:
symlx serveServe options
symlx serve --collision prompt
symlx serve --collision skip
symlx serve --collision fail
symlx serve --collision overwrite
symlx serve --non-interactive
symlx serve --bin-dir /custom/binIf your shell does not already include ~/.symlx/bin, add:
export PATH="$HOME/.symlx/bin:$PATH"Notes
- Prompt mode lets you choose overwrite/skip/abort when a command name already exists.
- In non-interactive sessions, prompt mode falls back to skip.
- Stale links from dead sessions are cleaned on the next startup.
kill -9cannot cleanup instantly, but stale cleanup runs next time.
