Release Notes
Added
install Command: Implemented kley install <package-name> (alias i) — a one-step command that combines add and native package manager installation. It detects the project's package manager, copies the package to .kley/, updates kley.lock, and delegates the final installation to npm, pnpm, or yarn.
- Package Manager Detection: Implemented a robust mechanism to detect the project's package manager (
npm, pnpm, yarn). The detection logic prioritizes kley.lock, then package.json, and finally lock files.
KLEY_USE_*_COMMAND Environment Variables: Added KLEY_USE_NPM_COMMAND, KLEY_USE_PNPM_COMMAND, and KLEY_USE_YARN_COMMAND to override the default package manager executables. Useful for users with non-standard setups (e.g., volta, nvm).
Changed
Package Struct: Introduced a new central Package struct to encapsulate project information (package.json, kley.lock, and detected package manager), improving code structure.
- Refactored validation logic: Extracted
package_name_version_parse and validate_version_in_registry from add into utils, now shared with install.
Install kley 0.6.0
Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/sumbad/kley/releases/download/v0.6.0/kley-installer.sh | sh
Install prebuilt binaries via powershell script
powershell -ExecutionPolicy Bypass -c "irm https://github.com/sumbad/kley/releases/download/v0.6.0/kley-installer.ps1 | iex"
Install prebuilt binaries into your npm project
npm install kley-cli@0.6.0
Download kley 0.6.0