sandbox template unpublish(别名 upb)将模板设为私有(private),其他用户将无法使用。
qshell sandbox template unpublish [templateIDs...] [-y]
qshell sbx tpl upb [templateIDs...] [-y]
$ qshell sandbox template unpublish -h
$ qshell sandbox template unpublish --doc
需要配置 QINIU_API_KEY 或 E2B_API_KEY 环境变量。
templateIDs:一个或多个模板 ID。未传入时,自动读取当前目录qshell.sandbox.toml中的template_id-y, --yes:跳过确认提示
- 取消发布单个模板
$ qshell sandbox template unpublish tmpl-xxxxxxxxxxxx -y
$ qshell sbx tpl upb tmpl-xxxxxxxxxxxx -y
- 取消发布多个模板
$ qshell sandbox template unpublish tmpl-aaa tmpl-bbb -y
- 取消发布当前目录配置文件对应的模板
$ qshell sandbox template unpublish -y
$ qshell sbx tpl upb -y
当 stdin 不是终端时,缺省的确认提示会立即报错并退出。自动化场景必须传 -y / --yes。