logo
0
0
WeChat Login
🐛 (config.js): fix promptInput to handle SIGINT and exit gracefully on user interrupt ✨ (config.js): add interactive prompts to request missing CNB token and organization info ♻️ (config.js): refactor getConfig to validate and save updated config with token and user fields 📝 (config.js): update error and info messages to English for consistency and clarity

CNB-CLI

CNB-CLI is a command-line interface tool designed to help developers quickly create and manage code repositories. It provides a simple and efficient way to initialize projects, manage repository configurations, and automate common development tasks.

Installation

npm install cnb-cli

Usage

cnb repo create <name> [desc] [visibility] cnb repo list cnb repo rm <name>

File Tree

cnb ├─ arch.md # 项目架构说明文档 ├─ index.js # CLI 入口文件 ├─ package.json # 项目配置与依赖声明 ├─ pnpm-lock.yaml # pnpm 包管理器的依赖锁定文件 ├─ README.md # 项目说明文档 ├─ scripts │ └─ completion.nu # 命令行自动补全脚本(NuShell) └─ src ├─ commands │ ├─ release.js # 发布相关命令实现 │ └─ repo.js # 仓库相关命令实现 ├─ lib │ ├─ config.js # 配置加载与管理模块 │ └─ request.js # 网络请求封装模块 └─ main.js # 主程序逻辑入口