chrono-setup
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseChrono CLI
Chrono CLI
Chrono CLI allows you to interact with the Developer Platform without accessing the dashboard.
Chrono CLI 让您无需访问控制台即可与开发者平台进行交互。
Quick Start
快速开始
Get started with chrono-cli in minutes:
bash
undefined几分钟内快速上手chrono-cli:
bash
undefined1. Check if chrono is installed
1. Check if chrono is installed
chrono --version
chrono --version
2. If not installed, install via curl
2. If not installed, install via curl
3. Navigate to your project and initialize
3. Navigate to your project and initialize
cd /path/to/project
chrono init
cd /path/to/project
chrono init
4. Login to authenticate
4. Login to authenticate
chrono login
chrono login
5. Setup MCP integration with your AI editor
5. Setup MCP integration with your AI editor
chrono mcp-setup
undefinedchrono mcp-setup
undefinedInstallation
安装
Via curl (Recommended)
通过curl安装(推荐)
bash
curl -sSL https://raw.githubusercontent.com/ChronoAIProject/chrono-cli/main/install.sh | shbash
curl -sSL https://raw.githubusercontent.com/ChronoAIProject/chrono-cli/main/install.sh | shVerify Installation
验证安装
bash
chrono --versionbash
chrono --versionAvailable Commands
可用命令
Authentication
身份验证
Login - Authenticate via Keycloak device flow
bash
chrono loginLogout - Clear local credentials
bash
chrono logoutStatus - Show current login status
bash
chrono statusLogin - 通过Keycloak设备流进行身份验证
bash
chrono loginLogout - 清除本地凭证
bash
chrono logoutStatus - 显示当前登录状态
bash
chrono statusProject Setup
项目设置
Init - Initialize Chrono configuration for your project
bash
chrono initCreates with project settings.
.chrono/config.yamlDetect - Analyze project and detect tech stack
bash
chrono detect [--save]- - Save detected configuration as metadata
--save
Init - 为您的项目初始化Chrono配置
bash
chrono init创建包含项目设置的 文件。
.chrono/config.yamlDetect - 分析项目并检测技术栈
bash
chrono detect [--save]- - 将检测到的配置保存为元数据
--save
AI Editor Integration
AI编辑器集成
MCP Setup - Configure AI editor to use Chrono as an MCP server
bash
chrono mcp-setup [editor]Supported editors:
- (default) - Cursor IDE
cursor - - Claude Code
claude-code - - Codex
codex - - Gemini CLI
gemini
This command:
- Creates API token automatically
- Configures editor's MCP settings
- Verifies MCP connection
MCP Setup - 配置AI编辑器以将Chrono用作MCP服务器
bash
chrono mcp-setup [editor]支持的编辑器:
- (默认)- Cursor IDE
cursor - - Claude Code
claude-code - - Codex
codex - - Gemini CLI
gemini
该命令会:
- 自动创建API令牌
- 配置编辑器的MCP设置
- 验证MCP连接
Configuration Files
配置文件
~/.chrono/config.yaml # Main CLI config
.chrono/config.yaml # Project-specific config
.chrono/metadata.yaml # Auto-generated project metadata
.cursor/mcp.json # Cursor MCP config (auto-generated)
.mcp.json # Claude Code MCP config (auto-generated)~/.chrono/config.yaml # 主CLI配置文件
.chrono/config.yaml # 项目专属配置文件
.chrono/metadata.yaml # 自动生成的项目元数据
.cursor/mcp.json # Cursor MCP配置文件(自动生成)
.mcp.json # Claude Code MCP配置文件(自动生成)Common Workflows
常见工作流程
First-time setup for a new project:
新项目首次设置:
bash
1. cd /path/to/project
2. chrono init
3. chrono login
4. chrono detect --save
5. chrono mcp-setupbash
1. cd /path/to/project
2. chrono init
3. chrono login
4. chrono detect --save
5. chrono mcp-setupDeploy current project:
部署当前项目:
bash
undefinedbash
undefinedUse the MCP tools via your AI editor
通过您的AI编辑器使用MCP工具
- list_projects
- create_pipeline
- trigger_pipeline_run
- get_run_status
undefined- list_projects
- create_pipeline
- trigger_pipeline_run
- get_run_status
undefinedGlobal Flags
全局标志
- - API server URL (overrides config)
--api-url string - - Config file path
--config string - - Enable debug output
--debug - - Help for any command
-h, --help - - Show version
-v, --version
- - API服务器URL(覆盖配置)
--api-url string - - 配置文件路径
--config string - - 启用调试输出
--debug - - 获取任意命令的帮助信息
-h, --help - - 显示版本信息
-v, --version