Agent CLI — ターミナルから AgentUI アプリを構築
Agent CLI は AgentUI のプロジェクトを普通のファイルとして手元に取得します。VS Code や Cursor で編集し、git で管理し、変更を戻せます。すべてのコマンドが --json に対応しているため、人だけでなく Claude Code や Codex、Aider からも操作できます。
MIT ライセンス、Node 22 以上。ドキュメントを読むのに登録は不要です。
$ npm install -g @agentuiai/cli
$ agentui auth login
$ agentui project create --name "Ops Dashboard"
→ ./ops-dashboard (AGENTS.md + skeleton)
$ agentui --json project list
{
"total": 2,
"projects": [
{ "name": "Ops Dashboard", "type": "APP_V2" },
{ "name": "Nightly Report", "type": "AUTOMATION" }
]
}すべてのコマンドが JSON を返すので、AI エージェントが操作できます
ルートコマンドに --json を付けると、すべてのサブコマンドが標準出力に機械可読な結果を返します。エラーも同様で、AWS や GitHub の CLI と同じ考え方です。エージェントが「使える」ツールと、画面から読み取るしかないツールの差はここにあります。
sync、edit、push — プロジェクトを自分のファイルとして扱う
sync はページ、コンポーネント、関数、エンティティスキーマを .jsx と .schema.json としてディスクに書き出します。push は作業ツリーとローカルのマニフェストを比較し、差分だけを送信します。--dry-run を付ければ、何も送る前に送信内容をそのまま確認できます。
$ agentui project sync <workflowId>
components/ pages/ functions/ entities/
$ code . # edit with anything
$ agentui project push --dry-run # see the diff first
$ agentui project pushやらないこと
シークレットの値がサーバーから出ることはありません。secrets list にも、sync のバンドルにも含まれません。パストラバーサルは読み取り・書き込み・削除のすべてで拒否されます。各エンドポイントは対象のワークフローを自社が保有しているかを検証し、他テナントからの要求には 403 ではなく 404 を返すため、リソースの存在自体を明かしません。
コマンド一覧
| agentui auth | Log in with an emailed 6-digit code; check or clear the session. |
|---|---|
| agentui workspace | List the workspaces you belong to and select the active one. |
| agentui project | create, list, sync, init, status, push — the core loop. |
| agentui env | Read and switch the environment a project is pointed at. |
| agentui secrets | List and request secrets. Values stay server-side. |
| agentui validate | Check a project for errors before you push it. |
| agentui build | Build the project bundle. |
| agentui deploy | Ship a built project. |
| agentui skills | Manage the skills available to a project. |
| agentui packages | Manage npm packages a project depends on. |
| agentui blueprints | Work with prebuilt app blueprints. |
| agentui prompts | Manage the prompts a project uses. |
| agentui functions | Inspect and manage server functions. |
| agentui integrations | List and configure third-party integrations. |
| agentui report | Report something broken or missing, from the terminal. |
完全なリファレンス、フラグ、終了コード、トラブルシューティングは npm の README にあります。 @agentuiai/cli
AI アシスタントとして読んでいますか? コマンド全体が 1 つのマークダウンにまとまっています: /agentui-cli.md
インストールして、最初のプロジェクトを同期する
npm install -g @agentuiai/cliMIT ライセンス、Node 22 以上。ドキュメントを読むのに登録は不要です。