跳转到主要内容
选择可选的 Kit 用例。
子命令: stackkit use-cases add, stackkit use-cases pick

stackkit use-cases add

向现有独立安装添加目录中的用例。 使用已安装 kit 的 CUE 定义的备选方案和模块配置默认值添加用例。保留现有工作负载、路由、放置和存储。按当前 spec 哈希保存候选配置,仅创建所选用例的本地秘密槽位。复用现有保管。此操作不会部署服务;通过正常生命周期生成并应用更新后的意图。需要原生 stackkit/v2alpha2,以及单节点、单站点的独立安装。
示例

stackkit use-cases pick

交互式地选择可选用例。 列出 Kit 的可选用例,并在终端中切换选中状态。 Arrow keys or j/k move the cursor. Space toggles the highlighted item. Enter confirms. Without --kit, the legacy Files, Photos and Vault selection is used. With --kit (Basement or Cloud), choices and defaults come from the embedded CUE kit catalog. Each choice shows its standard profile minimum (CPU / RAM GiB / disk GiB). The running numeric preview includes required Core and selected default alternatives. It observes this host unless --inventory and --node select another target. Data budgets, add-ons, profile changes and resident policy need a resolved plan. This preview writes no configuration and grants no Apply admission. --print writes the selected IDs as a comma-separated line on stdout so installers can pass them to stackkit init --use-case. Prompts go to stderr. When stdin is not a terminal, defaults are returned without a prompt; a kit preview is still printed to stderr. Unknown facts are shown as ?, never zero.
示例