Skip to content

Commit c257dee

Browse files
docs: update the help doc for oras manifest index create (#1650)
Signed-off-by: Rohan Mishra <[email protected]>
1 parent e5cf186 commit c257dee

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cmd/oras/root/manifest/index/create.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ type createOptions struct {
5656
func createCmd() *cobra.Command {
5757
var opts createOptions
5858
cmd := &cobra.Command{
59-
Use: "create [flags] <name>[:<tag[,<tag>][...]] [{<tag>|<digest>}...]",
59+
Use: "create [flags] <target>[:<tag[,<tag>][...]] <sources>[{<tag>|<digest>}...]",
6060
Short: "[Experimental] Create and push an index from provided manifests",
6161
Long: `[Experimental] Create and push an index from provided manifests. All manifests should be in the same repository
6262
@@ -76,10 +76,10 @@ Example - Create and push an index with annotations:
7676
oras manifest index create localhost:5000/hello:v1 linux-amd64 --annotation "key=val"
7777
7878
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+
8181
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
8383
8484
Example - Create an index and output the index to stdout, auto push will be disabled:
8585
oras manifest index create localhost:5000/hello linux-arm64 --output - --pretty

0 commit comments

Comments
 (0)