{"_id":"@acanowl/cli","name":"@acanowl/cli","dist-tags":{"latest":"1.0.7"},"versions":{"1.0.7":{"name":"@acanowl/cli","version":"1.0.7","description":"CAN Development Cli with typescript","type":"module","bin":{"c":"dist/index.js"},"keywords":["cli"],"author":{"name":"Eddy Hsu"},"license":"MIT","devDependencies":{"@types/cli-table":"^0.3.4","@types/prompts":"^2.4.9"},"dependencies":{"cac":"^6.7.14","cli-table":"^0.3.11","picocolors":"^1.1.1","prompts":"^2.4.2","@acanowl/utils":"^1.3.3","@acanowl/types":"^1.2.1"},"scripts":{"dev":"tsup --watch --sourcemap","build":"tsup","typecheck":"tsc --noEmit"},"_id":"@acanowl/cli@1.0.7","_integrity":"sha512-iwPxSvWv/0+ju/ywwhwX77pjHNqy2t2Ckkw7fSbIPzV+uIyyGr2IonMQQMj4Y7Qk/ZFbW97sorl08PzFfm3jbA==","_resolved":"C:\\Users\\kamix\\AppData\\Local\\Temp\\d947ca976dee9074e375c11f854d0a3b\\acanowl-cli-1.0.7.tgz","_from":"file:acanowl-cli-1.0.7.tgz","_nodeVersion":"24.19.0","_npmVersion":"11.17.0","dist":{"integrity":"sha512-iwPxSvWv/0+ju/ywwhwX77pjHNqy2t2Ckkw7fSbIPzV+uIyyGr2IonMQQMj4Y7Qk/ZFbW97sorl08PzFfm3jbA==","shasum":"3ad32c9d5ff307d07afda8be473898c8e652a995","tarball":"https://registry.npmjs.org/@acanowl/cli/-/cli-1.0.7.tgz","fileCount":17,"unpackedSize":20876,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCNHP+rYc21fbbLg4RFjOFf7c7vjqjDQvuiX48aqNKU4AIgNEoLpiD0oc1TABvhdCJT5w722r0gI0ijirynV9xmtT8="}]},"_npmUser":{"name":"acanowl","email":"kami.x1g@163.com"},"directories":{},"maintainers":[{"name":"acanowl","email":"kami.x1g@163.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/cli_1.0.7_1787991199753_0.1769290217087962"},"_hasShrinkwrap":false}},"time":{"created":"2026-08-29T08:13:19.575Z","1.0.7":"2026-08-29T08:13:19.881Z","modified":"2026-08-29T08:13:20.121Z"},"maintainers":[{"name":"acanowl","email":"kami.x1g@163.com"}],"description":"CAN Development Cli with typescript","keywords":["cli"],"author":{"name":"Eddy Hsu"},"license":"MIT","readme":"# CAN CLI\r\n\r\n懒人开发，由于 `c` 在键盘上按起来比较顺手，所以用 `c`，该脚手架基于 `https://github.com/hacxy/cli-tsup-template` 该模板进行开发\r\n\r\n[脚手架例子](https://github.com/acanowl/acanowl-framework/blob/master/packages/cli/README.md#example-%E7%94%A8%E6%B3%95)\r\n\r\nThis is a Nodejs CLI application that uses TypeScript as the development language and tsup as the build tool.\r\n\r\n这是一个 Nodejs CLI 应用程序, 它使用了 typescript 作为开发语言, tsup 作为构建工具\r\n\r\n## Prerequisites 先决条件\r\n\r\nRequires Node.js version 18+ or 20+.\r\n\r\n需要 Node.js 版本 18+、20+\r\n\r\n### Install Dependencies 安装依赖\r\n\r\n```sh\r\nnpm install\r\n```\r\n\r\n### Development 开发\r\n\r\n- Development mode: This will enable `watch` mode to rebuild code and output `sourcemap` files for debugging.\r\n\r\n- 开发模式: 这将启用 `watch` 模式对代码重新构建, 并输出用于 debug 的 `sourcemap` 文件\r\n\r\n```sh\r\nnpm run dev\r\n```\r\n\r\n- Build production environment code\r\n\r\n- 构建生产环境代码\r\n\r\n```sh\r\nnpm run build\r\n```\r\n\r\n- Type check\r\n\r\n- 类型检查\r\n\r\n```sh\r\nnpm run typecheck\r\n```\r\n\r\n### Global Link Package 全局链接包\r\n\r\nYou can also establish a global link for this package so that you can test or debug code with real environments easily:\r\n\r\n您还可以为这个包建立一个全局链接, 方便您使用真实环境来测试或者调试代码:\r\n\r\n```sh\r\nnpm link\r\n```\r\n\r\nAfterwards, you can execute command `cli-name` at any path under all terminals of your operating system. This command corresponds to value of option \"bin\" in file `package.json`.\r\n\r\nWhen you no longer need this global link, you can manually remove it by executing in root directory of your project:\r\n\r\n之后您就可以在您的操作系统的所有终端下任意路径下去执行命令: `cli-name`, 这个命令对应的是该项目下的 `package.json` 文件中 `bin` 选项的值.\r\n\r\n当您不再需要这个全局链接时, 您可以手动移除它, 在项目根目录中执行:\r\n\r\n```sh\r\nnpm unlink -g\r\n```\r\n\r\n### Dependency Description 依赖性说明\r\n\r\nIf your third-party library is installed with DevDependencies during development time，executing `npm run build` will pack these dependencies into production environment codes.If program works abnormally after installing via this method,you should try installing them as production environment dependencies(Dependencies). When they are installed as production environment dependencies ,they won't be packed into production environment codes .\r\n\r\n当您的第三方库以开发时依赖 (DevDependencies) 进行安装时, 执行`npm run build` 会将这些依赖打包进生产环境代码中, 如果您使用此方式安装并构建完成后, 发现程序工作异常, 则应该尝试将其作为生产环境依赖 (Dependencies) 进行安装, 当作为生产环境依赖进行安装时, 它们不会被打包进生产环境代码中.\r\n\r\n## Example 用法\r\n\r\n### c ver [...nodeName] Check Dependent Version\r\n\r\n| Label                     | Content                            |\r\n| ------------------------- | ---------------------------------- |\r\n| Check Dependent Version   | c ver                              |\r\n|                           | c ver [nodeName]                   |\r\n|                           | c ver [nodeName] [nodeName] ...    |\r\n| View All Versions         | c ver -l                           |\r\n|                           | c ver [nodeName] -l                |\r\n|                           | c ver [nodeName] --list            |\r\n| Update Dependent Registry | c ver -r                           |\r\n|                           | c ver [nodeName] -r=[path]         |\r\n|                           | c ver [nodeName] --registry=[path] |\r\n\r\n### c command [instruction] Custom Instruction\r\n\r\n| Label                               | Content                                    |\r\n| ----------------------------------- | ------------------------------------------ |\r\n| Create Custom Instruction           | c command                                  |\r\n|                                     | c command [instruction]                    |\r\n|                                     | c command [instruction] -c [command]       |\r\n|                                     | c command [instruction] --create [command] |\r\n| Delete Specified Custom Instruction | c command -d                               |\r\n|                                     | c command --delete                         |\r\n|                                     | c command [instruction] --delete           |\r\n| Delete All Custom Instruction       | c command --delete-all                     |\r\n| View All Custom Instruction         | c command -l                               |\r\n|                                     | c command --list                           |\r\n","readmeFilename":"README.md","_rev":"1-067550da0074d3f0d32bcef1fcecdfee"}