#automation #file-organizer #cli

app tooka

A fast, rule-based CLI tool for organizing your files

9 stable releases

Uses new Rust 2024

1.2.0 Nov 7, 2026
1.1.2 Jul 13, 2026
1.1.1 May 25, 2026
1.1.0 Mar 9, 2026
1.0.4 Jun 28, 2025

#190 in Filesystem

GPL-3.0-only

410KB
7.5K SLoC

Tooka

clippy test tooka version

Tooka logo

A fast, rule-based CLI tool for organizing files.


Introduction

Tooka is a flexible command-line tool for automating your filesystem: organize, rename, move, copy, or delete files using simple, powerful YAML rules.

You define what files to match (by name, extension, metadata, size, etc.) and what should happen to them — Tooka handles the rest with blazing-fast parallel processing. With built-in background monitoring, Tooka can continuously keep your folders organized automatically.


Features

  • Rule-based automation - Define custom file organization rules using declarative YAML
  • Automatic monitoring - Set up background monitoring to automatically sort folders at intervals
  • High-performance - Files are matched against your rules in parallel
  • Flexible filtering - Match files by name patterns, extensions, MIME types, size, metadata, and timestamps
  • Multiple actions - Move, copy, rename, delete, run a command, or skip files based on conditions
  • Template support - Dynamic file naming with customizable templates
  • Safe operations - A sort either completes or is undone; existing files are never overwritten, and tooka recover cleans up after a crash
  • Cross-platform - Works seamlessly on Windows, macOS, and Linux

Installation

Packages for Windows (also via winget install Benji377.Tooka), macOS and Linux are on the releases page. With Rust installed:

cargo install tooka

More options in docs/installation.md.


Quick Start

# Start from a commented example rule, then add it
tooka template --output my-rule.yaml
tooka validate my-rule.yaml
tooka add my-rule.yaml

# Preview, then sort (the default source folder, or --source)
tooka sort --dry-run
tooka sort --source ~/Downloads

# Monitor folder automatically
tooka monitor add ~/Downloads --interval 300
tooka monitor daemon run

See the documentation for installation, the complete rule reference, monitoring and more.


Performance

Tooka is designed for speed with:

  • Parallel file processing using Rayon
  • Optimized hot paths with cached operations
  • Comprehensive benchmark suite to track performance

Run performance benchmarks:

cargo bench

See benches/README.md for details.


Contributing

We welcome contributions! Please see:


Community & Support


License

Licensed under GPLv3


Built with ❤️ in Italy 🇮🇹

Dependencies

~16–39MB
~636K SLoC