Skip to content

Commit def1715

Browse files
committed
fix(cdn) add example to pass password in script
1 parent 370b739 commit def1715

File tree

1 file changed

+8
-2
lines changed
  • internal/cmd/beta/cdn/distribution/create

1 file changed

+8
-2
lines changed

internal/cmd/beta/cdn/distribution/create/create.go

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,13 +81,19 @@ func NewCmd(params *types.CmdParams) *cobra.Command {
8181
Example: examples.Build(
8282
examples.NewExample(
8383
`Create a CDN distribution with an HTTP backend`,
84-
`$ stackit beta cdn create --http --http-origin-url https://example.com \
84+
`$ stackit beta cdn distribution create --http --http-origin-url https://example.com \
8585
--regions AF,EU`,
8686
),
8787
examples.NewExample(
8888
`Create a CDN distribution with an Object Storage backend`,
89-
`$ stackit beta cdn create --bucket --bucket-url https://bucket.example.com \
89+
`$ stackit beta cdn distribution create --bucket --bucket-url https://bucket.example.com \
9090
--bucket-credentials-access-key-id yyyy --bucket-region EU \
91+
--regions AF,EU`,
92+
),
93+
examples.NewExample(
94+
`Create a CDN distribution passing the password via stdin, take care that there's a '\n' at the end of the input'`,
95+
`$ cat secret.txt | stackit beta cdn distribution create -y --project-id xxx \
96+
--bucket --bucket-url https://bucket.example.com --bucekt-credentials-access-key-id yyyy --bucket-region EU \
9197
--regions AF,EU`,
9298
),
9399
),

0 commit comments

Comments
 (0)