File tree 1 file changed +4
-4
lines changed
cmd/oras/root/manifest/index
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ type createOptions struct {
56
56
func createCmd () * cobra.Command {
57
57
var opts createOptions
58
58
cmd := & cobra.Command {
59
- Use : "create [flags] <name >[:<tag[,<tag>][...]] [{<tag>|<digest>}...]" ,
59
+ Use : "create [flags] <target >[:<tag[,<tag>][...]] <sources> [{<tag>|<digest>}...]" ,
60
60
Short : "[Experimental] Create and push an index from provided manifests" ,
61
61
Long : `[Experimental] Create and push an index from provided manifests. All manifests should be in the same repository
62
62
@@ -76,10 +76,10 @@ Example - Create and push an index with annotations:
76
76
oras manifest index create localhost:5000/hello:v1 linux-amd64 --annotation "key=val"
77
77
78
78
Example - Create an index and push to an OCI image layout folder 'layout-dir' and tag with 'v1':
79
- oras manifest index create --oci- layout layout -dir:v1 linux-amd64 sha256:99e4703fbf30916f549cd6bfa9cdbab614b5392fbe64fdee971359a77073cdf9
80
-
79
+ oras manifest index create layout-dir:v1 linux-amd64 sha256:99e4703fbf30916f549cd6bfa9cdbab614b5392fbe64fdee971359a77073cdf9 --oci-layout
80
+
81
81
Example - Create an index and save it locally to index.json, auto push will be disabled:
82
- oras manifest index create --output index.json localhost:5000/hello linux-amd64 linux-arm64
82
+ oras manifest index create localhost:5000/hello linux-amd64 linux-arm64 --output index.json
83
83
84
84
Example - Create an index and output the index to stdout, auto push will be disabled:
85
85
oras manifest index create localhost:5000/hello linux-arm64 --output - --pretty
You can’t perform that action at this time.
0 commit comments