Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/NiclasHaderer/duckdb-version-manager
Manage your DuckDB CLI with ease
https://github.com/NiclasHaderer/duckdb-version-manager
duckdb version-manager versioning
Last synced: 3 months ago
JSON representation
Manage your DuckDB CLI with ease
- Host: GitHub
- URL: https://github.com/NiclasHaderer/duckdb-version-manager
- Owner: NiclasHaderer
- License: mit
- Created: 2024-02-28T13:23:19.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-04-14T11:37:40.000Z (7 months ago)
- Last Synced: 2024-04-14T12:36:37.080Z (7 months ago)
- Topics: duckdb, version-manager, versioning
- Language: Go
- Homepage:
- Size: 118 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-duckdb - DuckDB version manager (`duckman`) - platform installer and version manager for DuckDB. (Resources)
README
# DuckDB Version Manager
[![Tests](https://github.com/NiclasHaderer/duckdb-version-manager/actions/workflows/test.yml/badge.svg)](https://github.com/NiclasHaderer/duckdb-version-manager/actions/workflows/test.yml)
### Installation
For **macOS** and **Linux**, run the following command in your terminal:
```bash
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/NiclasHaderer/duckdb-version-manager/main/install.sh)"
```For **Windows**, run the following command in your powershell terminal:
```powershell
Invoke-Expression (Invoke-WebRequest -UseBasicParsing -Uri "https://raw.githubusercontent.com/NiclasHaderer/duckdb-version-manager/main/install.ps1").Content
```### Usage
```bash
# Install a specific version of DuckDB (this does not set the version as default)
duckman install 0.10.2# Set a version of DuckDB as default one to use -> now running duckdb will run this version
duckman default 0.10.2# Run a version of DuckDB
duckman run nightly# List available DuckDB versions
duckman list remote
```Generally, installing a version before running it or setting it as default is not necessary.
If you want to run a version that is not installed, duckman will automatically download and install it for you.### Reference
```
A version manager for DuckDBUsage:
duckman [command]Available Commands:
completion Generate the autocompletion script for the specified shell
default Set a version of DuckDB as default one to use.
help Help about any command
install Install a specific version of DuckDB
list List available DuckDB versions. Use 'local' to list local versions and 'remote' to list remote versions.
run Execute a specific version of DuckDB
uninstall Uninstall a version of DuckDB
uninstall-self Removes duckman and all config files
update-self Updates duckman to the latest versionFlags:
-h, --help help for duckman
-v, --version version for duckmanUse "duckman [command] --help" for more information about a command.
```### Building from source
1. Install golang (https://go.dev/doc/install) if you haven't already
2. Run the *compile.sh* script to build binaries for all platforms. The binaries will be placed in the *bin* directory
after the compilation is done.