Skip to main content

Command reference

cde <command> [arguments] [options]

The command (also called a verb) must come first. Options come after it.

cde find afilename --template "{fullpath}"

Command names and option names are not case-sensitive. cde --help lists all commands, cde <command> --help shows the options of one command, and cde --version shows the version.

Commands​

CommandPurpose
scanScan a folder or drive and write a catalog.
findSearch by a piece of the file name.
findpathSearch by a piece of the full path.
grepSearch the file name with a regular expression.
greppathSearch the full path with a regular expression.
everythingSearch with an Everything-style query.
hashHash files so duplicates can be found.
dupesList duplicate files.
migrateConvert old .cde catalogs to .cdex.
updateChange the description of a catalog.
repl, replfind, replgrep, replgreppathInteractive modes.
treedump1Print the full tree of every catalog.

Options at a glance​

OptionApplies toDescription
--desc <text>scan, updateDescription stored in the catalog.
--follow-junctionsscanGo into directory junctions and symbolic links.
--exclude <path>scanSkip a folder for this scan. Repeatable.
-v, --verbosescanList folders that could not be read.
--template <format>find, findpath, grep, greppath, everythingFormat of each match line.
--filter <test>find, findpath, grep, greppath, everythingKeep only matches that pass. Repeatable.

Catalogs and the current directory​

Every command except scan and migrate <file> works on the catalogs it finds in the current directory and one directory below it. Run cde from the folder that holds your .cdex files. See Catalog files.

Exit codes​

CodeMeaning
0Success.
1An error, such as a query that cannot be read.
130You pressed Ctrl-C and the command was cancelled.

See Size units for size units, and Configuration for appsettings.json.