Skip to content

Command-line interface (CLI)

The rustac command-line interface can be installed two ways. If you have Rust, use cargo:

```sh cargo install rustac # to use libduckdb on your system

or

cargo install rustac -F duckdb-bundled # to build libduckdb on install (slow) ```

The CLI is called rustac:

shell rustac --help

If you don't have DuckDB on your system, you can also use the Python wheel, which includes libduckdb:

shell python -m pip install rustac

To get shell completions, use:

shell rustac generate-completions <your-shell> > <completion-file>

History

The CLI was announced at @gadomski's 2024 FOSS4G-NA presentation.