The rdash command supports multiple ways to specify the configuration file location, with the following priority order:
- Command-line argument (highest priority)
- Environment variable
- Current directory
- Home directory (lowest priority)
Use the --config flag to explicitly specify a config file path:
rdash --config /path/to/config.yaml chat logs
rdash --config ~/custom-config.yaml service listThis works with all commands (CLI mode, service management, and TUI mode):
# CLI mode
rdash --config ~/config.yaml chat status
# Service management
rdash --config ~/config.yaml service list
# TUI mode (no service specified)
rdash --config ~/config.yamlSet the RENDER_DASHBOARD_CONFIG environment variable to point to your config file:
export RENDER_DASHBOARD_CONFIG="$HOME/.config/render-dashboard/config.yaml"
rdash chat logsAdd this to your shell profile (~/.zshrc or ~/.bashrc) to make it permanent:
echo 'export RENDER_DASHBOARD_CONFIG="$HOME/.config/render-dashboard/config.yaml"' >> ~/.zshrcPlace a config.yaml file in the directory where you run rdash:
# From /path/to/project
rdash chat logs # Uses /path/to/project/config.yamlIf no config is found in the above locations, rdash looks for:
~/.config/render-dashboard/config.yaml
This is the recommended location for system-wide configuration:
mkdir -p ~/.config/render-dashboard
cp config.yaml ~/.config/render-dashboard/For different projects with different services:
# Project A
cd ~/projects/project-a
cat > config.yaml << EOF
render:
api_key: \${RENDER_API_KEY}
refresh_interval: 30
services:
- id: srv-projecta-service
name: project-a-api
aliases: [api, backend]
priority: 1
EOF
rdash api logs # Uses ~/projects/project-a/config.yamlFor managing all your services from anywhere:
# Set up once
mkdir -p ~/.config/render-dashboard
cat > ~/.config/render-dashboard/config.yaml << EOF
render:
api_key: \${RENDER_API_KEY}
refresh_interval: 30
services:
- id: srv-all-services
name: my-services
aliases: [services]
priority: 1
EOF
# Use from anywhere
cd ~/anywhere
rdash services statusFor automated environments:
export RENDER_DASHBOARD_CONFIG="/etc/render-dashboard/config.yaml"
rdash chat statusSince you're using the shell alias from your ~/.zshrc:
rdash() {
(
source "$HOME/projects/robdimarco/render-dashboard/.venv/bin/activate"
command rdash "$@"
)
}All the config loading methods work the same way:
# Use default config search
rdash chat logs
# Use specific config
rdash --config ~/my-config.yaml chat logs
# Use env var config
export RENDER_DASHBOARD_CONFIG=~/my-config.yaml
rdash chat logs