コマンドライン

Agent CLI — ターミナルから AgentUI アプリを構築

Agent CLI は AgentUI のプロジェクトを普通のファイルとして手元に取得します。VS Code や Cursor で編集し、git で管理し、変更を戻せます。すべてのコマンドが --json に対応しているため、人だけでなく Claude Code や Codex、Aider からも操作できます。

MIT ライセンス、Node 22 以上。ドキュメントを読むのに登録は不要です。

Terminal
@agentuiai/cli
$ 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" }
  ]
}
01

すべてのコマンドが JSON を返すので、AI エージェントが操作できます

ルートコマンドに --json を付けると、すべてのサブコマンドが標準出力に機械可読な結果を返します。エラーも同様で、AWS や GitHub の CLI と同じ考え方です。エージェントが「使える」ツールと、画面から読み取るしかないツールの差はここにあります。

02

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
03

やらないこと

シークレットの値がサーバーから出ることはありません。secrets list にも、sync のバンドルにも含まれません。パストラバーサルは読み取り・書き込み・削除のすべてで拒否されます。各エンドポイントは対象のワークフローを自社が保有しているかを検証し、他テナントからの要求には 403 ではなく 404 を返すため、リソースの存在自体を明かしません。

コマンド一覧

agentui authLog in with an emailed 6-digit code; check or clear the session.
agentui workspaceList the workspaces you belong to and select the active one.
agentui projectcreate, list, sync, init, status, push — the core loop.
agentui envRead and switch the environment a project is pointed at.
agentui secretsList and request secrets. Values stay server-side.
agentui validateCheck a project for errors before you push it.
agentui buildBuild the project bundle.
agentui deployShip a built project.
agentui skillsManage the skills available to a project.
agentui packagesManage npm packages a project depends on.
agentui blueprintsWork with prebuilt app blueprints.
agentui promptsManage the prompts a project uses.
agentui functionsInspect and manage server functions.
agentui integrationsList and configure third-party integrations.
agentui reportReport something broken or missing, from the terminal.

完全なリファレンス、フラグ、終了コード、トラブルシューティングは npm の README にあります。 @agentuiai/cli

AI アシスタントとして読んでいますか? コマンド全体が 1 つのマークダウンにまとまっています: /agentui-cli.md

インストールして、最初のプロジェクトを同期する

npm install -g @agentuiai/cli

MIT ライセンス、Node 22 以上。ドキュメントを読むのに登録は不要です。

これらのコマンドでエージェントにできること、できないこと

ブラウザで ChatGPT や Claude を使う場合は、AI エージェント向けの AgentUI をご覧ください