Skip to content

Commit f9ff7af

Browse files
committed
Fix man page for secret create for --replace
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <[email protected]>
1 parent c024f16 commit f9ff7af

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

commands/secret_create.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ var secretCreateCmd = &cobra.Command{
3030
[--trim=false]
3131
[--from-literal=SECRET_VALUE]
3232
[--from-file=/path/to/secret/file]
33+
[--replace]
3334
[STDIN]
3435
[--tls-no-verify]`,
3536
Short: "Create a new secret",
@@ -49,7 +50,7 @@ var secretCreateCmd = &cobra.Command{
4950
cat ./secret.txt | faas-cli secret create NAME
5051
5152
# Force an update if the secret already exists
52-
faas-cli secret create NAME --from-file PATH --update
53+
faas-cli secret create NAME --from-file PATH --replace
5354
`,
5455
RunE: runSecretCreate,
5556
PreRunE: preRunSecretCreate,

0 commit comments

Comments
 (0)