Cli Anything Anygen

hkuds/cli-anything/skills/cli-anything-anygen

作者 hkuds34f519533bc1無授權條款51K 個星標收錄於 2026年10月8日更新於 2026年10月8日儲存庫2 週前更新

Command-line interface for Anygen - A stateful command-line interface for AnyGen OpenAPI — generate professional slides, documents, webs...

僅含說明Documents & Office
AI 產生的概覽

用於 AnyGen OpenAPI 的有狀態命令列介面,可依提示產生簡報、文件、網站與圖表。

功能
提供圍繞 AnyGen OpenAPI 的有狀態命令列封裝,可依自然語言提示建立產生任務,產出簡報、文件、網站與圖表。它支援建立任務、查詢狀態、下載產生的檔案與縮圖,以及上傳參考檔案。它也提供專案持久化、含復原/重做的工作階段歷史、API 金鑰設定管理,以及人類可讀或 JSON 輸出。
適用情境
當代理或進階使用者需要透過命令列驅動 AnyGen 產生任務時使用,特別適合取用 JSON 輸出的指令碼化或程式化工作流程。它適用於建立、輪詢並下載產生產物,或管理 AnyGen 設定與工作階段狀態的工作流程。
執行需求
需要 Python 3.10+,透過 pip 安裝 cli-anything-anygen 套件,並在系統上安裝 anygen。需要透過設定命令設定 AnyGen API 金鑰,並具備存取 AnyGen OpenAPI 的網路連線。它不附帶指令碼,僅為說明文件。

cli-anything-anygen

A stateful command-line interface for AnyGen OpenAPI — generate professional slides, documents, websites, diagrams, and more from natural language prompts. Designed for AI agents and power users.

Installation

This CLI is installed as part of the cli-anything-anygen package:

bash
pip install cli-anything-anygen

Prerequisites:

  • Python 3.10+
  • anygen must be installed on your system

Usage

Basic Commands

bash
# Show helpcli-anything-anygen --help
# Start interactive REPL modecli-anything-anygen
# Create a new projectcli-anything-anygen project new -o project.json
# Run with JSON output (for agent consumption)cli-anything-anygen --json project info -p project.json

REPL Mode

When invoked without a subcommand, the CLI enters an interactive REPL session:

bash
cli-anything-anygen# Enter commands interactively with tab-completion and history

Command Groups

Task

Task management — create, poll, download, and run tasks.

CommandDescription
createCreate a generation task
statusQuery task status (non-blocking)
pollPoll task until completion (blocking)
downloadDownload the generated file for a completed task
thumbnailDownload thumbnail image for a completed task
runFull workflow: create, poll, download
listList locally cached task records
prepareMulti-turn requirement analysis before creating a task

File

File operations — upload reference files.

CommandDescription
uploadUpload a reference file to get a file_token

Config

Configuration management — API key and settings.

CommandDescription
setSet a configuration value
getGet a configuration value (or show all)
deleteDelete a configuration value
pathShow the config file path

Session

Session management — history, undo, redo.

CommandDescription
statusShow session status
historyShow command history
undoUndo last command
redoRedo last undone command

Examples

Create a New Project

Create a new anygen project file.

bash
cli-anything-anygen project new -o myproject.json# Or with JSON output for programmatic usecli-anything-anygen --json project new -o myproject.json

Interactive REPL Session

Start an interactive session with undo/redo support.

bash
cli-anything-anygen# Enter commands interactively# Use 'help' to see available commands# Use 'undo' and 'redo' for history navigation

State Management

The CLI maintains session state with:

  • Undo/Redo: Up to 50 levels of history
  • Project persistence: Save/load project state as JSON
  • Session tracking: Track modifications and changes

Output Formats

All commands support dual output modes:

  • Human-readable (default): Tables, colors, formatted text
  • Machine-readable (--json flag): Structured JSON for agent consumption
bash
# Human outputcli-anything-anygen project info -p project.json
# JSON output for agentscli-anything-anygen --json project info -p project.json

For AI Agents

When using this CLI programmatically:

  1. Always use --json flag for parseable output
  2. Check return codes - 0 for success, non-zero for errors
  3. Parse stderr for error messages on failure
  4. Use absolute paths for all file operations
  5. Verify outputs exist after export operations

More Information

  • Full documentation: See README.md in the package
  • Test coverage: See TEST.md in the package
  • Methodology: See HARNESS.md in the cli-anything-plugin

Version

1.0.0

來源與署名

來源:hkuds/cli-anything位於skills/cli-anything-anygen提交34f5195

授權條款: 無授權條款

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架