Overview
Thedat command allows you to search, view, and modify metadata for DAT files that have been processed by Datoso. This is useful for managing your DAT collection and customizing DAT properties.
Basic Usage
Selection Options
You must specify exactly one selection method to identify which DAT(s) to work with.Select by DAT Name
Select a specific DAT using the format
seed:name (e.g., redump:Sony - PlayStation)Select by Filter
Select DATs based on filter criteria in the format
field=value or field~=value=- Exact match!=- Not equal~=- Regex/fuzzy match
Select All DATs
Show all DATs in the database
Action Options
Once you’ve selected DAT(s), you can perform various actions on them.Show Details
Show detailed information for the selected DAT(s)
- name
- modifier
- company
- system
- seed
- date
- path
- system_type
- automerge
- parent
Show Specific Fields
Display only specific fields (space-separated list)
name- DAT namemodifier- Modifier stringcompany- Company namesystem- System nameseed- Source seed namedate- DAT datepath- File pathsystem_type- System typefull_name- Complete DAT nameautomerge- Auto-merge parentparent- Parent DATversion- DAT versionprefix- Name prefixsuffix- Name suffixstatus- DAT statusnew_file- New file pathfile- Original file pathmias- MIAs markedstatic_path- Static path
Set a Variable
Manually set a variable using the format
variable=value- Numbers are converted to integers
true/false(case-insensitive) are converted to booleannone/null(case-insensitive) are converted to None/null
Unset a Variable
Manually unset a variable (set it to null)
Delete a DAT
Delete the DAT from the database
Mark MIAs
Mark MIAs (Missing In Action) for the DAT
- Reads the DAT file
- Compares against the MIA database
- Marks entries as MIA where appropriate
Display Options
Show Only Names
Display only the
seed:name format, one per line (useful for scripting)Common Workflows
Find DATs by System
Disable a DAT
Check DAT Status
View All DATs from a Seed
List All DATs (Names Only)
Set Parent for Deduplication
Mark Multiple DATs as MIA
Output Format
By default, DATs are displayed in a table format using thepsql style:
Troubleshooting
DAT Not Found
If a DAT is not found by name:- Verify the seed name is correct
- Check if the DAT has been processed:
datoso dat --all --only-names - Process the seed if necessary:
datoso <seed-name> --process
Invalid Variable Name
If setting a variable fails, check the available fields list above and ensure the variable name matches exactly.Filter Not Working
Ensure your filter syntax is correct:- Use
=for exact matches - Use
~=for pattern matching - Quote values with spaces:
--find "name=Sony - PlayStation"
Next Steps
- Learn about seed commands for processing DAT files
- Use config commands to customize DAT processing
- Use deduper commands to remove duplicates based on parent relationships