https://github.com/pmassicotte/duckfetch
A duckdb CLI installer
https://github.com/pmassicotte/duckfetch
cli duckdb installer rust-lang sql
Last synced: about 1 year ago
JSON representation
A duckdb CLI installer
- Host: GitHub
- URL: https://github.com/pmassicotte/duckfetch
- Owner: PMassicotte
- License: apache-2.0
- Created: 2024-09-24T12:36:15.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-26T19:07:25.000Z (about 1 year ago)
- Last Synced: 2025-03-12T23:13:27.691Z (about 1 year ago)
- Topics: cli, duckdb, installer, rust-lang, sql
- Language: Rust
- Homepage: https://crates.io/crates/duckfetch
- Size: 4.93 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
# duckfetch: a DuckDB manager for Linux (maybe Windows and MacOS)
[](https://crates.io/crates/duckfetch) [](https://opensource.org/licenses/Apache-2.0)  
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](#features)
- [Requirements](#requirements)
- [Installation](#installation)
- [Usage](#usage)
- [Check the currently installed DuckDB version](#check-the-currently-installed-duckdb-version)
- [List available DuckDB versions](#list-available-duckdb-versions)
- [Install DuckDB](#install-duckdb)
- [Help](#help)
- [Autocompletion](#autocompletion)
- [Other related projects](#other-related-projects)
## 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](https://www.rust-lang.org/tools/install) (version 1.60 or later)
- Internet access to download DuckDB releases.
## Installation
To install it from crates.io:
```bash
cargo install duckfetch
```
Or the development version:
```bash
cargo install --git https://github.com/pmassicotte/duckfetch
```
## Usage
### Check the currently installed DuckDB version
```bash
duckfetch check
```
### List available DuckDB versions
```bash
duckfetch list
```
### Install DuckDB
This command will print the available versions and ask the user to select one to install.
```bash
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.
```bash
duckfetch changelog
```
## Help
For more information, use the `--help` flag:
```bash
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:
```bash
duckfetch completions zsh > ~/.zfunc/_duckfetch
```
Then, add the following line to your `.zshrc` file:
```bash
fpath+=~/.zfunc
autoload -Uz compinit
compinit -i
```
## Other related projects
- https://github.com/NiclasHaderer/duckdb-version-manager
- https://github.com/carlopi/duckdb-latest