Overview
Theconfig command manages Datoso’s configuration system, which uses INI-style files with sections and options. Configuration can be set globally or locally per project.
Configuration Locations
- Global:
~/.config/datoso/datoso.config(default) - Local:
.datosorcin the current directory
Basic Usage
Show Current Configuration
Display all active configuration settings:Configuration File Path
Get the path to the database file:Display the full path to the Datoso database file
Get Configuration Values
Retrieve a specific configuration value:Get the value of a configuration option in
SECTION.Option format (e.g., PROCESS.Overwrite)Scope Options for Get
Read from global configuration file (default)
Read from local
.datosorc fileSet Configuration Values
Modify a configuration value:Set a configuration option with format:
SECTION.Option value (e.g., PROCESS.Overwrite false)Scope Options for Set
Save to global configuration file (default)
Save to local
.datosorc file in current directorySave Configuration
Save the current active configuration to a file:Save configuration to a
.datosorc fileDirectory to save
.datosorc file~- Save to home directory.- Save to current directory
Update System Rules
Update DAT processing rules from the remote Google Sheets source:Update system rules from configured Google Sheets URL
- Connects to the configured Google Sheets URL
- Downloads the latest DAT rules
- Updates the local rules database
- Reports success or errors
Update MIA Database
Update the Missing In Action (MIA) database from the remote source:Update MIA database from configured Google Sheets URL
- Connects to the configured MIA database URL
- Downloads the latest MIA information
- Updates the local MIA database
- Reports success or errors
Common Configuration Sections
PATHS Section
Controls file system locations:PROCESS Section
Controls DAT processing behavior:IMPORT Section
Controls import behavior:COMMAND Section
Runtime command options:LOG Section
Logging configuration:Configuration Workflow Examples
Initial Setup
Project-Specific Configuration
View Active Configuration
Update Databases
Configuration Format
The configuration files use INI format with case-sensitive option names:- Section names are typically UPPERCASE
- Option names use PascalCase (first letter uppercase)
- Values are strings by default
- Boolean values:
trueorfalse - Paths can use
~for home directory
Troubleshooting
Invalid Configuration Key
Error:Invalid config key, must be in <SECTION>.<Option> format
Solution: Ensure you’re using the format SECTION.Option with a period separator:
Option Not Found
Warning:Config option not found in current config file
You’ll be prompted to confirm before creating new options. This prevents typos from creating invalid configuration entries.
Rules/MIA Update Fails
If--rules-update or --mia-update fails:
- Check your internet connection
- Run with verbose output:
datoso -v config --rules-update - Check the log:
datoso log - Run doctor:
datoso doctor
Next Steps
- Learn about seed commands to process DAT files
- Use DAT commands to manage processed DATs
- Validate your setup with doctor commands