輸出格式
此文件屬於以命令列工具管理 Stackhero 服務指南的一部分。請在此處查看完整指南:安裝及使用 Stackhero CLI,讓您可於命令列、腳本、自動化流程(CI)及 AI agent 上管理您的 stack 及服務。
所有 CLI 指令均支援全域 --format 參數:
human(預設):以易讀表格及文字顯示,適合互動操作。json:輸出機器可讀的 JSON,適合腳本及 AI agent。script:只輸出原始值,方便直接存入 shell 變數。
例如:
stackhero organizations-list --format=json
stackId=$(stackhero --format=script stack-create --name="My stack")