cli-contexts

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese
<!-- generated by src/lib/agentSkills/generator.ts; manual edits will be overwritten -->
<!-- 由 src/lib/agentSkills/generator.ts 生成;手动编辑将被覆盖 -->

Overview

概述

Manage context engineering configurations, RTK filter sets, and conversation sessions from the CLI. Apply context-relay settings and inspect active context pipelines.
通过 CLI 管理 Context Engineering 配置、RTK 过滤集和对话会话。应用 context-relay 设置并检查当前活跃的上下文管道。

Quick install

快速安装

bash
npm install -g omniroute   # or: npx omniroute
omniroute --version
bash
npm install -g omniroute   # or: npx omniroute
omniroute --version

Subcommands

子命令

context-eng

context-eng

Example:
bash
omniroute context-eng
示例:
bash
omniroute context-eng

context-eng analytics

context-eng analytics

Flags:
  • --period <p>
Example:
bash
omniroute context-eng analytics
标志:
  • --period <p>
示例:
bash
omniroute context-eng analytics

context-eng caveman

context-eng caveman

Example:
bash
omniroute context-eng caveman
示例:
bash
omniroute context-eng caveman

context-eng config

context-eng config

Example:
bash
omniroute context-eng config
示例:
bash
omniroute context-eng config

context-eng show

context-eng show

Example:
bash
omniroute context-eng show
示例:
bash
omniroute context-eng show

context-eng set

context-eng set

Flags:
  • --aggressiveness <n>
  • --max-shrink-pct <n>
  • --preserve-tags <list>
Example:
bash
omniroute context-eng set
标志:
  • --aggressiveness <n>
  • --max-shrink-pct <n>
  • --preserve-tags <list>
示例:
bash
omniroute context-eng set

context-eng rtk

context-eng rtk

Example:
bash
omniroute context-eng rtk
示例:
bash
omniroute context-eng rtk

context-eng config

context-eng config

Example:
bash
omniroute context-eng config
示例:
bash
omniroute context-eng config

context-eng show

context-eng show

Example:
bash
omniroute context-eng show
示例:
bash
omniroute context-eng show

context-eng set

context-eng set

Flags:
  • --token-budget <n>
  • --reserve-pct <n>
Example:
bash
omniroute context-eng set
标志:
  • --token-budget <n>
  • --reserve-pct <n>
示例:
bash
omniroute context-eng set

context-eng filters

context-eng filters

Example:
bash
omniroute context-eng filters
示例:
bash
omniroute context-eng filters

context-eng list

context-eng list

Example:
bash
omniroute context-eng list
示例:
bash
omniroute context-eng list

context-eng add

context-eng add

Flags:
  • --pattern <p>
  • --priority <n>
  • --action <a>
Example:
bash
omniroute context-eng add
标志:
  • --pattern <p>
  • --priority <n>
  • --action <a>
示例:
bash
omniroute context-eng add

context-eng remove <id>

context-eng remove <id>

Flags:
  • --yes
Example:
bash
omniroute context-eng remove <id>
标志:
  • --yes
示例:
bash
omniroute context-eng remove <id>

context-eng test

context-eng test

Flags:
  • --file <path>
Example:
bash
omniroute context-eng test
标志:
  • --file <path>
示例:
bash
omniroute context-eng test

context-eng raw-output <id>

context-eng raw-output <id>

Example:
bash
omniroute context-eng raw-output <id>
示例:
bash
omniroute context-eng raw-output <id>

context-eng combos

context-eng combos

Example:
bash
omniroute context-eng combos
示例:
bash
omniroute context-eng combos

context-eng list

context-eng list

Example:
bash
omniroute context-eng list
示例:
bash
omniroute context-eng list

context-eng get <id>

context-eng get <id>

Example:
bash
omniroute context-eng get <id>
示例:
bash
omniroute context-eng get <id>

context-eng assignments <id>

context-eng assignments <id>

Example:
bash
omniroute context-eng assignments <id>
示例:
bash
omniroute context-eng assignments <id>

contexts

contexts

Example:
bash
omniroute contexts
示例:
bash
omniroute contexts

contexts list

contexts list

List all contexts
Example:
bash
omniroute contexts list
列出所有上下文
示例:
bash
omniroute contexts list

contexts add <name>

contexts add <name>

Add a new context
Flags:
  • --url <u>
  • --api-key <k>
  • --api-key-stdin
  • --access-token <t>
  • --access-token-stdin
  • --scope <s>
  • --description <d>
Example:
bash
omniroute contexts add <name>
添加新上下文
标志:
  • --url <u>
  • --api-key <k>
  • --api-key-stdin
  • --access-token <t>
  • --access-token-stdin
  • --scope <s>
  • --description <d>
示例:
bash
omniroute contexts add <name>

contexts use <name>

contexts use <name>

Switch active context
Example:
bash
omniroute contexts use <name>
切换当前活跃的上下文
示例:
bash
omniroute contexts use <name>

contexts current

contexts current

Show the active context (server, auth, scope)
Flags:
  • --name-only
Example:
bash
omniroute contexts current
显示当前活跃的上下文(服务器、认证、作用域)
标志:
  • --name-only
示例:
bash
omniroute contexts current

contexts show <name>

contexts show <name>

Show context details
Example:
bash
omniroute contexts show <name>
显示上下文详情
示例:
bash
omniroute contexts show <name>

contexts remove <name>

contexts remove <name>

Remove a context
Flags:
  • --yes
Example:
bash
omniroute contexts remove <name>
移除上下文
标志:
  • --yes
示例:
bash
omniroute contexts remove <name>

contexts rename <old> <new>

contexts rename <old> <new>

Rename a context
Example:
bash
omniroute contexts rename <old> <new>
重命名上下文
示例:
bash
omniroute contexts rename <old> <new>

contexts export

contexts export

Export contexts to JSON
Flags:
  • --out <path>
  • --no-secrets
  • --include-secrets
Example:
bash
omniroute contexts export
将上下文导出为 JSON
标志:
  • --out <path>
  • --no-secrets
  • --include-secrets
示例:
bash
omniroute contexts export

contexts import <file>

contexts import <file>

Import contexts from a JSON file
Flags:
  • --merge
Example:
bash
omniroute contexts import <file>
从 JSON 文件导入上下文
标志:
  • --merge
示例:
bash
omniroute contexts import <file>

contexts migrate

contexts migrate

Move legacy plaintext context credentials to the OS keychain
Flags:
  • --yes
Example:
bash
omniroute contexts migrate
将旧版明文上下文凭据迁移到操作系统密钥链
标志:
  • --yes
示例:
bash
omniroute contexts migrate

sessions

sessions

Example:
bash
omniroute sessions
示例:
bash
omniroute sessions

sessions list

sessions list

Flags:
  • --user <u>
  • --kind <k>
  • --active
  • --limit <n>
Example:
bash
omniroute sessions list
标志:
  • --user <u>
  • --kind <k>
  • --active
  • --limit <n>
示例:
bash
omniroute sessions list

sessions show <sessionId>

sessions show <sessionId>

Example:
bash
omniroute sessions show <sessionId>
示例:
bash
omniroute sessions show <sessionId>

sessions expire <sessionId>

sessions expire <sessionId>

Flags:
  • --yes
Example:
bash
omniroute sessions expire <sessionId>
标志:
  • --yes
示例:
bash
omniroute sessions expire <sessionId>

sessions expire-all

sessions expire-all

Flags:
  • --user <u>
  • --yes
Example:
bash
omniroute sessions expire-all
标志:
  • --user <u>
  • --yes
示例:
bash
omniroute sessions expire-all

sessions current

sessions current

Example:
bash
omniroute sessions current
示例:
bash
omniroute sessions current