limit

Set the maximum number of versions to retain per secret.

The history limit command sets how many versions of each secret are retained for a project.

Usage#

redenv history limit [value]

Arguments#

NameRequiredDescription
valueNoNew limit (prompts interactively if omitted)

Options#

FlagDescription
-p, --project <name>Project name

Examples#

# Set limit interactively
redenv history limit

# Set limit to 25 versions
redenv history limit 25

# Set unlimited history (0 = no limit)
redenv history limit 0

Interactive Flow#

$ redenv history limit

? Select a project: my-app
? Enter the new history limit. Use 0 for unlimited: 10
? Enter your Master Password: ********
 Setting history limit for "my-app" to 10...
 History limit for "my-app" is now set to 10.

Info

Use 0 for unlimited history retention. Note that this can increase storage usage over time.

Warning

When you reduce the limit, older versions are pruned during the next write operation, not immediately. This ensures no data loss occurs during normal operation.