knock-pet
v0.1.0
Published
Install Knock Pet community pets from the command line.
Maintainers
Readme
knock-pet
Knock Pet 的独立命令行安装器。发布到 npm 后,可直接用 npx 安装社区宠物。
用法
npx knock-pet install <pet-id>可选参数:
npx knock-pet install <pet-id> --base-url https://www.lifecorpjourney.top/knock-pet
npx knock-pet install <pet-id> --dir /custom/install/dir说明
- 默认安装目录:
- macOS:
~/Library/Application Support/Knock Pet/mini-pets - Windows:
%APPDATA%/Knock Pet/mini-pets - Linux:
$XDG_CONFIG_HOME/Knock Pet/mini-pets或~/.config/Knock Pet/mini-pets
- macOS:
- 该命令会从官网下载安装包,解压后写入本地宠物目录。
- 如果你在本地开发环境调试,可继续使用仓库根目录命令:
npm run pet:install:cli -- <pet-id>