Skip to content

CLI Commands

Run commands with uv run snowpack from the repository root.

Global options must be passed before the command name.

Usage: snowpack [OPTIONS] COMMAND [ARGS]...
Snowpack — Iceberg table compaction and maintenance.
Options:
-v, --verbose Enable debug logging
--help Show this message and exit.
Commands:
health Analyze health of a single Iceberg table.
maintain Execute maintenance actions on a single Iceberg table.
tables List discovered Iceberg tables.

snowpack tables

List discovered Iceberg tables.

Parameters

NameDefaultDescription
--spark-hostconfig/env default
--spark-portconfig/env default
--catalogconfig/env default
--database, -dconfig/env defaultLimit to a specific database
Usage: snowpack tables [OPTIONS]
List discovered Iceberg tables.
Options:
--spark-host TEXT
--spark-port INTEGER
--catalog TEXT
-d, --database TEXT Limit to a specific database
--help Show this message and exit.

snowpack health

Analyze health of a single Iceberg table.

Parameters

NameDefaultDescription
--spark-hostconfig/env default
--spark-portconfig/env default
--catalogconfig/env default
DATABASErequiredPositional argument.
TABLErequiredPositional argument.
Usage: snowpack health [OPTIONS] DATABASE TABLE
Analyze health of a single Iceberg table.
Options:
--spark-host TEXT
--spark-port INTEGER
--catalog TEXT
--help Show this message and exit.

snowpack maintain

Execute maintenance actions on a single Iceberg table.

Parameters

NameDefaultDescription
--spark-hostconfig/env default
--spark-portconfig/env default
--catalogconfig/env default
--target-file-size-mbconfig/env default
--min-file-size-mbconfig/env default
--actionrequiredMaintenance action to execute (repeatable)
--dry-runfalseLog what would be executed but don’t mutate
DATABASErequiredPositional argument.
TABLErequiredPositional argument.
Usage: snowpack maintain [OPTIONS] DATABASE TABLE
Execute maintenance actions on a single Iceberg table.
Options:
--spark-host TEXT
--spark-port INTEGER
--catalog TEXT
--target-file-size-mb INTEGER
--min-file-size-mb INTEGER
--action TEXT Maintenance action to execute (repeatable)
[required]
--dry-run Log what would be executed but don't mutate
--help Show this message and exit.