@@ -41,29 +41,29 @@ func newCreateCommand() *cobra.Command {
41
41
createCommand := & cobra.Command {
42
42
Use : "create FILE.yaml|URL" ,
43
43
Example : `
44
- To create an instance "default" from the default Ubuntu template:
45
- $ limactl create
44
+ To create an instance "default" from the default Ubuntu template:
45
+ $ limactl create
46
46
47
- To create an instance "default" from a template "docker":
48
- $ limactl create --name=default template://docker
47
+ To create an instance "default" from a template "docker":
48
+ $ limactl create --name=default template://docker
49
49
50
- To create an instance "default" with modified parameters:
51
- $ limactl create --cpus=2 --memory=2
50
+ To create an instance "default" with modified parameters:
51
+ $ limactl create --cpus=2 --memory=2
52
52
53
- To create an instance "default" with yq expressions:
54
- $ limactl create --set='.cpus = 2 | .memory = "2GiB"'
53
+ To create an instance "default" with yq expressions:
54
+ $ limactl create --set='.cpus = 2 | .memory = "2GiB"'
55
55
56
- To see the template list:
57
- $ limactl create --list-templates
56
+ To see the template list:
57
+ $ limactl create --list-templates
58
58
59
- To create an instance "default" from a local file:
60
- $ limactl create --name=default /usr/local/share/lima/templates/fedora.yaml
59
+ To create an instance "default" from a local file:
60
+ $ limactl create --name=default /usr/local/share/lima/templates/fedora.yaml
61
61
62
- To create an instance "default" from a remote URL (use carefully, with a trustable source):
63
- $ limactl create --name=default https://raw.githubusercontent.com/lima-vm/lima/master/templates/alpine.yaml
62
+ To create an instance "default" from a remote URL (use carefully, with a trustable source):
63
+ $ limactl create --name=default https://raw.githubusercontent.com/lima-vm/lima/master/templates/alpine.yaml
64
64
65
- To create an instance "local" from a template passed to stdin (--name parameter is required):
66
- $ cat template.yaml | limactl create --name=local -
65
+ To create an instance "local" from a template passed to stdin (--name parameter is required):
66
+ $ cat template.yaml | limactl create --name=local -
67
67
` ,
68
68
Short : "Create an instance of Lima" ,
69
69
Args : WrapArgsError (cobra .MaximumNArgs (1 )),
@@ -79,11 +79,11 @@ func newStartCommand() *cobra.Command {
79
79
startCommand := & cobra.Command {
80
80
Use : "start NAME|FILE.yaml|URL" ,
81
81
Example : `
82
- To create an instance "default" (if not created yet) from the default Ubuntu template, and start it:
83
- $ limactl start
82
+ To create an instance "default" (if not created yet) from the default Ubuntu template, and start it:
83
+ $ limactl start
84
84
85
- To create an instance "default" from a template "docker", and start it:
86
- $ limactl start --name=default template://docker
85
+ To create an instance "default" from a template "docker", and start it:
86
+ $ limactl start --name=default template://docker
87
87
88
88
'limactl start' also accepts the 'limactl create' flags such as '--set'.
89
89
See the examples in 'limactl create --help'.
0 commit comments