CLI for Secrets Manager
Use the secrets-mgr commands to automate your Secrets Manager Processes. For more information about how to use these commands, refer to the Secrets Manager documentation.
| Command | Description | 
|---|---|
Creates a new secret group  | 
|
Deletes a secret group  | 
|
Shows details of a secret group  | 
|
Lists secret groups  | 
|
Modifies a secret group  | 
|
Creates a shared secret in a secret group  | 
|
Shows details of a shared secret  | 
|
Lists all shared secrets in a secret group  | 
|
Modifies a shared secret  | 
|
Replaces an existing shared secret  | 
|
Creates a new certificate secret  | 
|
Shows details of a certificate secret  | 
|
Lists all certificate secrets in a secret group  | 
|
Modifies a certificate secret  | 
|
Replaces an existing certificate secret  | 
|
Creates a new keystore secret  | 
|
Shows details of a keystore secret  | 
|
Lists all keystore secrets in a secret group  | 
|
Modifies a keystore secret  | 
|
Replaces an existing keystore secret  | 
|
Creates a new truststore secret  | 
|
Shows details of a truststore secret  | 
|
Lists all truststore secrets in a secret group  | 
|
Modifies a truststore secret  | 
|
Replaces an existing truststore secret  | 
|
Creates a new Mule TLS context secret  | 
|
Shows details of a Mule TLS context secret  | 
|
Lists all Mule TLS context secrets in a secret group  | 
|
Modifies a Mule TLS context secret  | 
|
Replaces an existing Mule TLS context secret  | 
|
Creates a new Flex Gateway TLS context secret  | 
|
Shows details of a Flex Gateway TLS context secret  | 
|
Lists all Flex Gateway TLS context secrets in a secret group  | 
|
Modifies a Flex Gateway TLS context secret  | 
|
Replaces an existing Flex Gateway TLS context secret  | 
secrets-mgr:secret-group:create
> secrets-mgr:secret-group:create [flags]
Creates a new secret group with the name specified by --name
Prompt the --downloadable flag if the secrets in this group are referenced in an API Manager proxy.
This command accepts the default flags.
secrets-mgr:secret-group:delete
> secrets-mgr:secret-group:delete [flags]
Deletes the secret group specified by --id
| This command does not prompt for confirmation before deleting. | 
This command accepts the default flags.
secrets-mgr:secret-group:describe
> secrets-mgr:secret-group:describe [flags]
Returns the details of a secret group specified by --id
This command accepts the default flags.
secrets-mgr:secret-group:list
> secrets-mgr:secret-group:list [flags]
Lists all your secret groups, including the name and ID
This command accepts the default flags.
secrets-mgr:secret-group:modify
> secrets-mgr:secret-group:modify [flags]
Modifies a secret group specified by --id
In addition to the default flags, this command accepts the following flags:
| Flag | Description | Example | 
|---|---|---|
  | 
Name for your secret group  | 
  | 
  | 
Secrets in this group are referenced in an API Manager proxy  | 
  | 
  | 
Secrets in this group are not referenced in an API Manager proxy  | 
  | 
secrets-mgr:shared-secret:create
> secrets-mgr:shared-secret:create [flags]
Creates a new shared secret in the secret group specified by --group-id, using the name specified by --name and the type specified by --type
In addition to the default flags, this command accepts the following flags:
| Flag | Description | Example | 
|---|---|---|
  | 
Secret group ID (required)  | 
  | 
  | 
Name for your secret  | 
  | 
  | 
Choose the shared secret type (required)  | 
  | 
  | 
Blob text content (for   | 
  | 
  | 
Expiration date for the secret  | 
  | 
  | 
Key value (for   | 
  | 
  | 
S3 access key id (for   | 
  | 
  | 
S3 secret access key (for   | 
  | 
  | 
Password (for   | 
  | 
  | 
Username (for   | 
  | 
secrets-mgr:shared-secret:describe
> secrets-mgr:shared-secret:describe [flags]
Returns the details of a shared secret specified by --id from the secret group specified by --group-id
This command accepts the default flags.
| The output does not include any sensitive or secret data. | 
secrets-mgr:shared-secret:list
> secrets-mgr:shared-secret:list [flags]
Lists all shared secrets in a secret group specified by --group-id
This command accepts the default flags.
secrets-mgr:shared-secret:modify
> secrets-mgr:shared-secret:modify [flags]
Modifies the name or expiration date for a shared secret specified by --id, from the secret group specified by --group-id
In addition to the default flags, this command accepts the following flags:
| Flag | Description | Example | 
|---|---|---|
  | 
New name for the shared secret  | 
  | 
  | 
New expiration date for the shared secret  | 
  | 
secrets-mgr:secret-group:replace
> secrets-mgr:shared-secret:replace [flags]
Replaces an existing shared secret specified by --id, from the secret group specified by --group-id, using the type specified by --type
In addition to the default flags, this command accepts the following flags:
| Flag | Description | Example | 
|---|---|---|
  | 
Secret ID (required)  | 
  | 
  | 
Secret Group ID (required)  | 
  | 
  | 
Shared secret type (required)  | 
  | 
  | 
New name for your shared secret  | 
  | 
  | 
Blob text content (for   | 
  | 
  | 
Expiration date for the secret  | 
  | 
  | 
Key value (for   | 
  | 
  | 
S3 access key id (for   | 
  | 
  | 
S3 secret access key (for   | 
  | 
  | 
Password (for   | 
  | 
  | 
Username (for   | 
  | 
secrets-mgr:certificate:create
> secrets-mgr:certificate:create [flags]
Creates a new certificate secret in the secret group specified by --group-id, using the name specified by --name and the type specified by --type
In addition to the default flags, this command accepts the following flags:
| Flag | Description | Example | 
|---|---|---|
  | 
Secret group ID (required)  | 
  | 
  | 
Name for your secret (required)  | 
  | 
  | 
Choose the certificate secret type (required)  | 
  | 
  | 
Certificate file path  | 
  | 
  | 
Expiration date for the secret  | 
  | 
secrets-mgr:certificate:describe
> secrets-mgr:certificate:describe [flags]
Returns the details of a certificate secret specified by --id from the secret group specified by --group-id
This command accepts the default flags.
| The output does not include any sensitive or secret data. | 
secrets-mgr:certificate:list
> secrets-mgr:certificate:list [flags]
Lists all certificate secrets in a secret group specified by --group-id
This command accepts the default flags.
secrets-mgr:certificate:modify
> secrets-mgr:certificate:modify [flags]
Modifies the name or expiration date for a certificate secret specified by --id from the group specified by --group-id
In addition to the default flags, this command accepts the following flags:
| Flag | Description | Example | 
|---|---|---|
  | 
New name for the certificate secret  | 
  | 
  | 
New expiration date for the keystore secret  | 
  | 
secrets-mgr:certificate:replace
> secrets-mgr:certificate:replace [flags]
Replaces an existing certificate secret specified by --id, from the secret group specified by --group-id, using the type specified by --type
In addition to the default flags, this command accepts the following flags:
| Flag | Description | Example | 
|---|---|---|
  | 
Secret ID (required)  | 
  | 
  | 
Secret Group ID (required)  | 
  | 
  | 
Certificate secret type (required)  | 
  | 
  | 
New name for your shared secret  | 
  | 
  | 
Certificate file type  | 
  | 
  | 
Expiration date for the secret  | 
  | 
secrets-mgr:keystore:create
> secrets-mgr:keystore:create [flags]
Creates a new keystore secret in the secret group specified by --group-id, using the name specified by --name and the type specified by --type
In addition to the default flags, this command accepts the following flags:
| Flag | Description | Example | 
|---|---|---|
  | 
Secret group ID (required)  | 
  | 
  | 
Name for your secret (required)  | 
  | 
  | 
Keystore secret type (required)  | 
  | 
  | 
Key manager factory algorithm for   | 
  | 
  | 
Alias for the key used in   | 
  | 
  | 
CA path certificate file for   | 
  | 
  | 
Expiration date for the secret  | 
  | 
  | 
Key file for PEM keystore secrets  | 
  | 
  | 
Passphrase required for   | 
  | 
  | 
Keystore filepath for   | 
  | 
  | 
Passphrase for the   | 
  | 
secrets-mgr:keystore:describe
> secrets-mgr:keystore:describe [flags]
Returns the details of a keystore secret specified by --id from the secret group specified by --group-id
This command accepts the default flags.
| The output doesn’t include any sensitive or secret data. | 
secrets-mgr:keystore:list
> secrets-mgr:keystore:list [flags]
Lists all keystore secrets in a secret group specified by --group-id
This command accepts the default flags.
secrets-mgr:keystore:modify
> secrets-mgr:keystore:modify [flags]
Modifies the name or expiration date for a keystore secret specified by --id from the group specified by --group-id
In addition to the default flags, this command accepts the following flags:
| Flag | Description | Example | 
|---|---|---|
  | 
New name for the keystore secret  | 
  | 
  | 
New expiration date for the keystore secret  | 
  | 
secrets-mgr:keystore:replace
> secrets-mgr:keystore:replace [flags]
Replaces an existing keystore secret specified by --id, from the secret group specified by --group-id, using the type specified by --type
In addition to the default flags, this command accepts the following flags:
| Flag | Description | Example | 
|---|---|---|
  | 
Secret ID (required)  | 
  | 
  | 
Choose the keystore secret type (required)  | 
  | 
  | 
Key manager factory algorithm for   | 
  | 
  | 
Alias for the key used in   | 
  | 
  | 
CA path certificate file for   | 
  | 
  | 
Expiration date for the secret  | 
  | 
  | 
Key file for PEM keystore secrets  | 
  | 
  | 
Passphrase required for   | 
  | 
  | 
Keystore filepath for   | 
  | 
  | 
Name for your secret  | 
  | 
  | 
Passphrase for the   | 
  | 
secrets-mgr:truststore:create
> secrets-mgr:truststore:create [flags]
Creates a new truststore secret in the secret group specified by --group-id, using the name specified by --name and the type specified by --type
In addition to the default flags, this command accepts the following flags:
| Flag | Description | Example | 
|---|---|---|
  | 
Secret group ID (required)  | 
  | 
  | 
Name for your secret (required)  | 
  | 
  | 
Choose the truststore secret type (required)  | 
  | 
  | 
Truststore filepath (required)  | 
  | 
  | 
Key manager factory algorithm for   | 
  | 
  | 
Expiration date for the secret  | 
  | 
  | 
Passphrase required for   | 
  | 
secrets-mgr:truststore:describe
> secrets-mgr:truststore:describe [flags]
Returns the details of a truststore secret specified by --id from the secret group specified by --group-id
This command accepts the default flags.
| The output does not include any sensitive or secret data. | 
secrets-mgr:truststore:list
> secrets-mgr:truststore:list [flags]
Lists all truststore secrets in a secret group specified by --group-id
This command accepts the default flags.
secrets-mgr:truststore:modify
> secrets-mgr:truststore:modify [flags]
Modifies the name or expiration date for a truststore secret specified by --id from the group specified by --group-id
In addition to the default flags, this command accepts the following flags:
| Flag | Description | Example | 
|---|---|---|
  | 
New name for the truststore secret  | 
  | 
  | 
New expiration date for the truststore secret  | 
  | 
secrets-mgr:truststore:replace
> secrets-mgr:truststore:replace [flags]
Replaces an existing truststore secret specified by --id, from the secret group specified by --group-id, using the type specified by --type
In addition to the default flags, this command accepts the following flags:
| Flag | Description | Example | 
|---|---|---|
  | 
Secret ID (required)  | 
  | 
  | 
Choose the truststore secret type (required)  | 
  | 
  | 
Truststore filepath (required)  | 
  | 
  | 
Key manager factory algorithm for   | 
  | 
  | 
Expiration date for the secret  | 
  | 
  | 
Name for your secret  | 
  | 
  | 
Passphrase required for   | 
  | 
secrets-mgr:tls-context:mule:create
> secrets-mgr:tls-context:mule:create [flags]
Creates a new Mule TLS context secret in the secret group specified by --group-id, and using the name specified by --name
In addition to the default flags, this command accepts the following flags:
| Flag | Description | Example | 
|---|---|---|
  | 
Secret group ID (required)  | 
  | 
  | 
Name for your secret (required)  | 
  | 
  | 
TLS Version  | 
  | 
  | 
Cipher for the specified TLS version  | 
  | 
  | 
Expiration date for the secret  | 
  | 
  | 
Disable certificate validation  | 
  | 
  | 
A valid   | 
  | 
  | 
A valid   | 
  | 
secrets-mgr:tls-context:mule:describe
> secrets-mgr:tls-context:mule:describe [flags]
Returns the details of a Mule TLS context secret specified by --id from the secret group specified by --group-id
This command accepts the default flags.
| The output does not include any sensitive or secret data. | 
secrets-mgr:tls-context:mule:list
> secrets-mgr:tls-context:mule:list [flags]
Lists all Mule TLS context secrets in a secret group specified by --group-id
This command accepts the default flags.
secrets-mgr:tls-context:mule:modify
> secrets-mgr:TLS-context:mule:modify [flags]
Modifies the name or expiration date for a Mule TLS context secret specified by --id from the group specified by --group-id
In addition to the default flags, this command accepts the following flags:
| Flag | Description | Example | 
|---|---|---|
  | 
New name for the truststore secret  | 
  | 
  | 
New expiration date for the truststore secret  | 
  | 
secrets-mgr:tls-context:mule:replace
> secrets-mgr:tls:context:mule:replace [flags]
Replaces an existing Mule TLS context secret specified by --id, from the secret group specified by --group-id, using the type specified by --type
In addition to the default flags, this command accepts the following flags:
| Flag | Description | Example | 
|---|---|---|
  | 
Secret group ID (required)  | 
  | 
  | 
Name for your secret (required)  | 
  | 
  | 
TLS Version  | 
  | 
  | 
Cipher for the specified TLS version  | 
  | 
  | 
Expiration date for the secret  | 
  | 
  | 
Disable certificate validation  | 
  | 
  | 
A valid   | 
  | 
  | 
A valid   | 
  | 
secrets-mgr:tls-context:flex-gateway:create
> secrets-mgr:tls-context:flex-gateway:create [flags]
Creates a new Flex Gateway TLS context secret in the secret group specified by --group-id, and using the name specified by --name
In addition to the default flags, this command accepts the following flags:
| Flag | Description | Example | 
|---|---|---|
  | 
Secret group ID (required)  | 
  | 
  | 
Name for your secret (required)  | 
  | 
  | 
Maximum TLS Version  | 
  | 
  | 
Minimum TLS Version  | 
  | 
  | 
Cipher for the specified TLS version range  | 
  | 
  | 
ALPN Protocol  | 
  | 
  | 
Enable client certificate validation  | 
  | 
  | 
Expiration date for the secret  | 
  | 
  | 
A valid   | 
  | 
  | 
A valid   | 
  | 
  | 
Skip service certificate validation  | 
  | 
For more information about ciphers, see Flex Gateway Supported Ciphers.
secrets-mgr:tls-context:flex-gateway:describe
> secrets-mgr:tls-context:flex-gateway:describe [flags]
Returns the details of a Flex Gateway TLS context secret specified by --id from the secret group specified by --group-id
This command accepts the default flags.
| The output does not include any sensitive or secret data. | 
secrets-mgr:tls-context:flex-gateway:list
> secrets-mgr:tls-context:flex-gateway:list [flags]
Lists all Flex Gateway TLS context secrets in a secret group specified by --group-id
This command accepts the default flags.
secrets-mgr:tls-context:flex-gateway:modify
> secrets-mgr:TLS-context:flex-gateway:modify [flags]
Modifies the name or expiration date for a Flex Gateway TLS context secret specified by --id from the group specified by --group-id
In addition to the default flags, this command accepts the following flags:
| Flag | Description | Example | 
|---|---|---|
  | 
New name for the truststore secret  | 
  | 
  | 
New expiration date for the truststore secret  | 
  | 
secrets-mgr:tls-context:flex-gateway:replace
> secrets-mgr:tls:context:flex-gateway:replace [flags]
Replaces an existing Flex Gateway TLS context secret specified by --id, from the secret group specified by --group-id, using the type specified by --type
In addition to the default flags, this command accepts the following flags:
| Flag | Description | Example | 
|---|---|---|
  | 
Secret group ID (required)  | 
  | 
  | 
Name for your secret (required)  | 
  | 
  | 
Maximum TLS Version  | 
  | 
  | 
Minimum TLS Version  | 
  | 
  | 
Cipher for the specified TLS version range  | 
  | 
  | 
ALPN Protocol  | 
  | 
  | 
Enable client certificate validation  | 
  | 
  | 
Expiration date for the secret  | 
  | 
  | 
A valid   | 
  | 
  | 
A valid   | 
  | 
  | 
Skip service certificate validation  | 
  | 



