template copy
limactl template copy
复制模板
概述
通过定位符将模板复制到本地文件
limactl template copy [OPTIONS] TEMPLATE DEST [flags]
示例
Template locators are local files, file://, https://, or template: URLs
# Copy default template to STDOUT
limactl template copy template:default -
# Copy template from web location to local file and embed all external references
# (this does not embed template: references)
limactl template copy --embed https://example.com/lima.yaml mighty-machine.yaml
选项
--embed 将外部依赖嵌入到模板中
--embed-all 将所有依赖嵌入到模板中
--fill 填充默认值
-h, --help help for copy
--verbatim 不使定位符变为绝对路径
从父命令继承的选项
--debug 调试模式
--log-format string 设置日志格式 [text, json] (default "text")
--log-level string 设置日志级别 [trace, debug, info, warn, error]
--tty 启用 TUI 交互,如打开编辑器。默认在终端时为 true。自动化时设为 false。
-y, --yes --tty=false 的别名
另请参见
- limactl template - Lima template management (EXPERIMENTAL)