sreq config

View and validate sreq configuration.

Synopsis

sreq config <command>

Subcommands

CommandDescription
sreq config showDisplay current configuration
sreq config pathShow config file path
sreq config testTest provider connections

sreq config show

Display the current configuration:

sreq config show

Output:

# Current Configuration

providers:
  consul:
    address: consul.example.com:8500
    token: <set via CONSUL_TOKEN>

  aws_secrets:
    region: us-east-1
    profile: default

environments:
  - dev
  - staging
  - prod

default_env: dev

services:
  auth-service:
    consul_key: auth
    aws_prefix: auth-svc

sreq config path

Show the config file path:

sreq config path

Output:

/Users/you/.sreq/config.yaml

sreq config test

Test connections to configured providers:

sreq config test

Output:

Testing provider connections...

Consul:
  Address: consul.example.com:8500
  Status:  ✓ Connected
  Leader:  10.0.1.5:8300

AWS Secrets Manager:
  Region:  us-east-1
  Profile: default
  Status:  ✓ Credentials valid

All providers connected successfully!

Test Failures

If a provider fails:

Testing provider connections...

Consul:
  Address: consul.example.com:8500
  Status:  ✗ Connection failed
  Error:   dial tcp: connection refused

AWS Secrets Manager:
  Region:  us-east-1
  Status:  ✓ Credentials valid

1 of 2 providers failed. Run 'sreq auth' to reconfigure.

Configuration Location

FileDescription
~/.sreq/config.yamlMain configuration
~/.sreq/services.yamlService definitions (optional)

Override with environment variable:

export SREQ_CONFIG=/path/to/custom/config.yaml

See Also