#duck-db #fetch #tool #latest-version #version-manager #command-line-tool

app duckfetch

A CLI tool for managing DuckDB installations, enabling users to easily list available versions and install specific ones

3 unstable releases

0.3.3 Oct 15, 2024
0.3.0 Sep 29, 2024
0.2.0 Sep 26, 2024

#138 in Development tools

Download history 114/week @ 2024-09-21 231/week @ 2024-09-28 18/week @ 2024-10-05 145/week @ 2024-10-12 18/week @ 2024-10-19 1/week @ 2024-10-26 13/week @ 2024-11-02

179 downloads per month

MIT/Apache

220KB
734 lines

duckfetch: a DuckDB manager for Linux (maybe Windows and MacOS)

Crates.io License Build Status Build Status

A simple (very experimental) Rust application to manage DuckDB installations, allowing users to list available versions and install specific versions easily.

Table of Contents

Demo

Demo

Features

  • List available DuckDB versions from GitHub releases with duckfetch list.
  • Install a specific DuckDB version with duckfetch install.
  • Update to the latest version with duckfetch update.
  • Generate auto-completion scripts for your shell with duckfetch completions.

Requirements

  • Rust (version 1.60 or later)
  • Internet access to download DuckDB releases.

Installation

To install it from crates.io:

cargo install duckfetch

Or the development version:

cargo install --git https://github.com/pmassicotte/duckfetch

Usage

Check the currently installed DuckDB version

duckfetch check

List available DuckDB versions

duckfetch list

Install DuckDB

This command will print the available versions and ask the user to select one to install.

duckfetch install

Open the change log of the latest version

This will open the GitHub release page for the latest version in your default browser.

duckfetch changelog

Help

For more information, use the --help flag:

duckfetch install --help

Autocompletion

To enable autocompletion, you can use the completions subcommand to generate the completion script for your shell. For example, to enable completions for the zsh shell:

duckfetch completions zsh > ~/.zfunc/_duckfetch

Then, add the following line to your .zshrc file:

fpath+=~/.zfunc
autoload -Uz compinit
compinit -i

Dependencies

~16–30MB
~465K SLoC