Appearance
metaplay secrets update ENVIRONMENT NAME [flags]
Update a user secret in the target environment
Appearance
Update a user secret in the target environment
metaplay secrets update ENVIRONMENT NAME [flags] Update an existing user secret in the target environment. This command allows you to add new entries, update existing entries, or remove entries from a secret.
Use the --from-literal and --from-file flags to add or update key-value pairs. Use the --remove flag to remove entries by key.
At least one of --from-literal, --from-file, or --remove must be specified.
Expected arguments:
Related commands:
# Update an existing entry's value
metaplay secrets update nimbly user-mysecret --from-literal=password=newsecret
# Add a new entry to an existing secret
metaplay secrets update nimbly user-mysecret --from-literal=apikey=abc123
# Add entry from file
metaplay secrets update nimbly user-mysecret --from-file=certificate=./cert.pem
# Remove an entry
metaplay secrets update nimbly user-mysecret --remove=oldkey
# Combine: update one entry and remove another
metaplay secrets update nimbly user-mysecret --from-literal=password=new --remove=deprecated-key--from-file <stringArray>: Add or update an entry with the value read from a file (e.g., key=filepath) (default: [])--from-literal <stringArray>: Add or update an entry using a literal value (e.g., key=value) (default: [])--remove <stringArray>: Remove an entry by key (default: [])--color <string>: Should the output be colored (yes/no/auto)? [env: METAPLAYCLI_COLOR] (default: auto)--project <string>: Path to the to project directory (where metaplay-project.yaml is located)--skip-version-check: Skip the check for a new CLI version being available--verbose: Enable verbose logging, useful for troubleshooting [env: METAPLAYCLI_VERBOSE]