configbound list
list scans a directory tree for ConfigBound configurations and prints what it finds, grouped by file.
Use it to confirm that discovery works correctly, or to get the exact file paths and export names needed for configbound export --config ... --name ....
Usage
text
configbound list [path] [options]Arguments
| Argument | Description | Default |
|---|---|---|
path | Directory to search | Current working directory |
Options
| Flag | Description | Default |
|---|---|---|
-r, --recursive [boolean] | Search subdirectories (default: true) | — |
Examples
bash
# List all configs in the current project
configbound list
# Search a specific directory
configbound list ./src
# Search non-recursively
configbound list --recursive falseOutput
Results are grouped by file. Each entry shows the export name, whether it is a default or named export, the config's display name if set, and the line number:
text
📄 src/config/app.config.ts
default (default) - My App Config :42
📄 src/config/db.config.ts
default (default) - Database Config :18
dbConfig (named) - Database Config (read-only) :67When a file has multiple exports, each is listed separately. Use the export name with --name when running export:
bash
configbound export --config src/config/db.config.ts --name dbConfig