nais valkey credentials

nais valkey credentials NAME [flags]

Creates temporary credentials for accessing a Valkey instance. The credentials are printed to stdout as environment variables.

Options

-p, --permission
Permission level for the credentials (READ, WRITE, READWRITE, ADMIN).
--ttl
Time-to-live for the credentials (e.g. ā€˜1d’, ā€˜7d’). Maximum 30 days.

Inherited options

--config
Specify the location for the configuration file.
-e, --environment
Filter by environment.
--no-colors
Disable colors in the output.
-t, --team
Specify the team to use for this command. Overrides the default team from configuration.
-v, --verbose
Set verbosity level. Use -v for verbose, -vv for debug, -vvv for trace.

Examples

# Create read credentials for a Valkey instance named my-valkey in environment dev, valid for 1 day.
$ nais valkey credentials my-valkey --environment dev --permission READ --ttl 1d

This site uses Just the Docs, a documentation theme for Jekyll.