Configuration

Get or set configuration values for whatsdiff. cli-config.png

Usage

# View all configuration
whatsdiff config

# Get a specific value
whatsdiff config <key>

# Set a value
whatsdiff config <key> <value>

Available Options

Cache Settings

Control caching behavior for API requests and changelog data:

cache.enabled (boolean, default: true)

  • Enable or disable caching

cache.min-time (integer, default: 300)

  • Minimum cache duration in seconds (5 minutes)

cache.max-time (integer, default: 86400)

  • Maximum cache duration in seconds (1 day)

Examples

View All Configuration

$ whatsdiff config

cache:
  enabled: true
  min-time: 600
  max-time: 86400

Get a Specific Value

$ whatsdiff config cache.enabled
true

Set a Value

$ whatsdiff config cache.min-time 900
Configuration updated: cache.min-time = 900

Disable Caching

$ whatsdiff config cache.enabled false
Configuration updated: cache.enabled = false