CLI
Config Show Command
Display current HumanLayer CLI configuration
npx humanlayer config show
The config show
command displays your current HumanLayer CLI configuration, including API settings, contact channels, and environment variables. This is useful for debugging configuration issues and verifying your setup.
Usage
Options
Flag | Description | Default |
---|---|---|
--config-file <path> | Path to config file | ~/.config/humanlayer/humanlayer.json |
--slack-channel <id> | Override Slack channel or user ID | - |
--slack-bot-token <token> | Override Slack bot token | - |
--slack-context <context> | Override Slack channel/user context | - |
--slack-thread-ts <ts> | Override Slack thread timestamp | - |
--slack-blocks [boolean] | Override Slack blocks setting | - |
--email-address <email> | Override email address | - |
--email-context <context> | Override email context | - |
--json | Output configuration as JSON with masked secrets | - |
Output Formats
Human-Readable Format (Default)
JSON Format
Configuration Resolution
The command shows the final resolved configuration after merging values from multiple sources in order of precedence:
- Command-line flags (highest priority)
- Environment variables
- Configuration files (lowest priority)
Examples
Basic Configuration Display
Show Configuration with Overrides
Output as JSON for Scripting
Use Custom Config File
Configuration Sources
Config Files
The CLI looks for configuration in these locations:
./humanlayer.json
(local project config)~/.config/humanlayer/humanlayer.json
(user config)- Custom path via
--config-file
Environment Variables
All settings can be overridden with environment variables:
HUMANLAYER_API_TOKEN
HUMANLAYER_API_BASE_URL
HUMANLAYER_APP_URL
HUMANLAYER_SLACK_CHANNEL
HUMANLAYER_SLACK_BOT_TOKEN
HUMANLAYER_SLACK_CONTEXT
HUMANLAYER_SLACK_THREAD_TS
HUMANLAYER_SLACK_BLOCKS
HUMANLAYER_EMAIL_ADDRESS
HUMANLAYER_EMAIL_CONTEXT
Security
- Token masking: Sensitive values like API tokens and bot tokens are masked in the human-readable output
- JSON output: The
--json
flag also masks sensitive values for security - No secrets in logs: Sensitive information is truncated to prevent accidental exposure
Troubleshooting
No Configuration Found
If you see empty configuration:
- Run
npx humanlayer login
to set up basic authentication - Check if config files exist in expected locations
- Verify environment variables are set correctly
Missing Contact Channel
If no contact channel is configured:
- Set Slack channel:
--slack-channel C123456789
- Set email address:
--email-address team@company.com
- Or configure via environment variables or config file
Permission Issues
If you can’t read config files:
- Check file permissions:
ls -la ~/.config/humanlayer/
- Ensure the directory exists
- Use
--config-file
to specify an alternative location