Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,12 @@ USAGE:
scw secret version create [arg=value ...]

ARGS:
secret-id ID of the secret
data Content of the secret version. Base64 is handled by the SDK (Support file loading with @/path/to/file)
[description] Description of the version
[disable-previous] Disable the previous secret version
[password-generation.length] Length of the password to generate (between 1 and 1024)
[password-generation.no-lowercase-letters] Do not include lower case letters by default in the alphabet
[password-generation.no-uppercase-letters] Do not include upper case letters by default in the alphabet
[password-generation.no-digits] Do not include digits by default in the alphabet
[password-generation.additional-chars] Additional ascii characters to be included in the alphabet
[data-crc32] The CRC32 checksum of the data as a base-10 integer
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par)
secret-id ID of the secret
data Content of the secret version. Base64 is handled by the SDK (Support file loading with @/path/to/file)
[description] Description of the version
[disable-previous] Disable the previous secret version
[data-crc32] (Optional.) The CRC32 checksum of the data as a base-10 integer
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par)

FLAGS:
-h, --help help for create
Expand Down
7 changes: 1 addition & 6 deletions docs/commands/secret.md
Original file line number Diff line number Diff line change
Expand Up @@ -200,12 +200,7 @@ scw secret version create [arg=value ...]
| data | Required | Content of the secret version. Base64 is handled by the SDK |
| description | | Description of the version |
| disable-previous | | Disable the previous secret version |
| password-generation.length | | Length of the password to generate (between 1 and 1024) |
| password-generation.no-lowercase-letters | | Do not include lower case letters by default in the alphabet |
| password-generation.no-uppercase-letters | | Do not include upper case letters by default in the alphabet |
| password-generation.no-digits | | Do not include digits by default in the alphabet |
| password-generation.additional-chars | | Additional ascii characters to be included in the alphabet |
| data-crc32 | | The CRC32 checksum of the data as a base-10 integer |
| data-crc32 | | (Optional.) The CRC32 checksum of the data as a base-10 integer |
| region | Default: `fr-par`<br />One of: `fr-par` | Region to target. If none is passed will use default region from the config |


Expand Down
37 changes: 1 addition & 36 deletions internal/namespaces/secret/v1alpha1/secret_cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -349,44 +349,9 @@ func secretVersionCreate() *core.Command {
Deprecated: false,
Positional: false,
},
{
Name: "password-generation.length",
Short: `Length of the password to generate (between 1 and 1024)`,
Required: false,
Deprecated: false,
Positional: false,
},
{
Name: "password-generation.no-lowercase-letters",
Short: `Do not include lower case letters by default in the alphabet`,
Required: false,
Deprecated: false,
Positional: false,
},
{
Name: "password-generation.no-uppercase-letters",
Short: `Do not include upper case letters by default in the alphabet`,
Required: false,
Deprecated: false,
Positional: false,
},
{
Name: "password-generation.no-digits",
Short: `Do not include digits by default in the alphabet`,
Required: false,
Deprecated: false,
Positional: false,
},
{
Name: "password-generation.additional-chars",
Short: `Additional ascii characters to be included in the alphabet`,
Required: false,
Deprecated: false,
Positional: false,
},
{
Name: "data-crc32",
Short: `The CRC32 checksum of the data as a base-10 integer`,
Short: `(Optional.) The CRC32 checksum of the data as a base-10 integer`,
Required: false,
Deprecated: false,
Positional: false,
Expand Down