Ho记录res 命令行工具
AI-代理-friendly command-line interface for Ho记录res with safety 防护rAIls and structured JSON 输出.
安装ation
# Requires Python 3.11+
pip 安装 ho记录res-命令行工具
# Or 安装 a specific version
pip 安装 ho记录res-命令行工具==0.2.0
Configuration
性能分析-based configuration stored in ~/.ho记录res/config.json.
# Interactive 设置up wizard
ho记录res config
# Or 设置 values directly
ho记录res config 设置 region_id cn-hangzhou
ho记录res config 设置 instance_id hgprecn-cn-xxx
ho记录res config 设置 database mydb
性能分析 resolution priority: --性能分析 flag > current 性能分析 > error (prompts to 运行 ho记录res config).
Quick 启动
pip 安装 ho记录res-命令行工具
ho记录res config # Interactive 设置up
ho记录res 状态 # 检查 connection
ho记录res 模式 tables # 列出 tables
ho记录res sql 运行 "SELECT * FROM orders LIMIT 10" # 查询 data
ho记录res --性能分析 prod 状态 # Use specific 性能分析
ho记录res dt 列出 # 列出 Dynamic Tables
Core Commands
Command Description
ho记录res 状态 检查 connection 状态
ho记录res instance 查询 instance version/connections
ho记录res warehouse [name] 列出 or 查询 warehouses
ho记录res 模式 tables 列出 all tables
ho记录res 模式 describe Show table structure
ho记录res 模式 dump <模式.table> 导出 DDL
ho记录res 模式 size <模式.table> 获取 table storage size
ho记录res table 列出 [--模式 S] 列出 all tables
ho记录res table 创建 -n TABLE -c COLS [options] [--dry-运行] 创建 a table (supports 记录ical partition V3.1+)
ho记录res table dump <模式.table> 导出 DDL for a table
ho记录res table show
Show table structure (columns, types, nullable, defaults, primary key, comments)
ho记录res table size <模式.table> 获取 table storage size
ho记录res table properties Show Ho记录res-specific table properties (orientation, distribution_key, clustering_key, TTL, etc.)
ho记录res table drop
[--if-exists] [--cascade] --confirm Drop a table (dry-运行 by default)
ho记录res table t运行cate --confirm T运行cate (empty) a table (dry-运行 by default)
ho记录res table alter TABLE [options] [--dry-运行] Alter table properties (添加 column, rename, TTL, etc.)
ho记录res partition 列出 --table
列出 partitions of a 记录ical partition table
ho记录res partition 创建 --table 创建 partition (no-op for 记录ical tables, returns notice)
ho记录res partition drop --table
--partition VALUE --confirm Drop partition (删除s partition data)
ho记录res partition alter --table --partition --设置 [--dry-运行] Alter partition properties (keep_alive, storage_mode, 生成_bin记录)
ho记录res partition alter --table
--设置 [--dry-运行] Alter partition properties (keep_alive, storage_mode, 生成_bin记录)
ho记录res view 列出 [--模式 S] 列出 all views
ho记录res view show Show view definition and structure
ho记录res 扩展 列出 列出 安装ed 扩展s
ho记录res 扩展 创建 [--if-not-exists] 创建 (安装) a database 扩展
ho记录res guc show Show current value of a GUC parameter
ho记录res guc 设置 设置 GUC parameter at database level (persistent)
ho记录res sql 运行 "<查询>" 执行 read-only SQL
ho记录res sql 运行 --write "" 执行 write SQL
ho记录res sql explAIn "<查询>" Show SQL execution plan
ho记录res data 导出
--partition -f out.csv [-q <查询>] [-d ] 导出 to CSV
ho记录res data 导入
] [--t运行cate] 导入 from CSV
ho记录res data count
-f in.csv [-d [-w ] Count rows
ho记录res 历史 [-n ] Show command 历史
ho记录res AI-图形界面de 生成 AI 代理 图形界面de
ho记录res AI gen "" [--模型] 生成 text using AI function
ho记录res AI image-gen "" -o volume://vol/path [options] 生成 images to OSS volume using AI function
ho记录res AI t2v "" -o volume://vol/path [options] 生成 video from text (text-to-video)
ho记录res AI i2v "" --img-url -o volume://vol/path [options] 生成 video from first-frame image (image-to-video)
ho记录res AI r2v "" --reference-url -o volume://vol/path [options] 生成 video from reference images (reference-to-video)
ho记录res AI video-edit "" --video -o volume://vol/path [options] Edit video with text instructions
ho记录res volume 创建 --端点 --root --角色arn --访问-key --访问-secret 创建 a local volume config (also 创建s OSS directory placeholder)
ho记录res volume 列出 列出 all volumes in current 性能分析
ho记录res volume 删除 删除 a volume config
ho记录res volume 列出-files --volume [--prefix P] [--max-count N] [--net internet|intranet] 列出 files in volume
ho记录res volume 删除-file --volume --file [--confirm] [--net internet|intranet] 删除 file from volume (dry-运行 by d