Skip to main content

Generalized tool installer

Project description

cbdep - Generalized Tool Installer

cbdep is a command-line tool for installing and managing development dependencies and tools. It provides a simple interface to download and install various packages with automatic platform detection and caching.

Installation

The easiest way to install cbdep is using uv:

uv tool install cbdep

This will install cbdep to ~/.local/bin/ (or the equivalent on Windows). Make sure this directory is on your PATH.

Alternative: Using the Wrapper Script

For CI/CD environments or systems where you don't want to pre-install tools, you can use the wrapper script which automatically installs and updates cbdep via uv:

Linux/macOS:

curl -qLsSf https://packages.couchbase.com/cbdep/latest/cbdep -O
chmod +x cbdep
./cbdep install <package> <version>

Windows:

# Download cbdep.exe from packages.couchbase.com
.\cbdep.exe install <package> <version>

The wrapper script will automatically install uv if needed, then install/update cbdep itself.

Usage

List Available Packages

See all packages that can be installed:

cbdep list

Install a Package

Install a specific version of a package:

cbdep install <package> <version>

For example:

cbdep install golang 1.21.0
cbdep install cmake 3.25.0

By default, packages are installed to the ./install directory. You can specify a different location:

cbdep install golang 1.21.0 --dir /opt/tools

Cache Management

Cache a download without installing:

cbdep cache <url>

Get the cached filename:

cbdep cache <url> --report

Save a cached file locally:

cbdep cache <url> --output ./myfile.tar.gz

Platform Information

Display detected platform and architecture:

cbdep platform

Override platform or architecture detection:

cbdep --platform linux --arch arm64 install golang 1.21.0

Options

Global options:

  • --debug - Enable debug output
  • -p, --platform <platform> - Override detected platform
  • -a, --arch <arch> - Override detected architecture
  • -V, --version - Show version information

Install options:

  • -d, --dir <directory> - Installation directory (default: ./install)
  • -c, --config-file <file> - Use custom YAML configuration file
  • -n, --cache-only - Only download, don't install
  • -r, --report - Report cached filename
  • -o, --output <file> - Save cached file to local path
  • --recache - Re-download files, replacing cache

Configuration

cbdep includes a built-in configuration file that defines available packages and their download locations. You can also provide a custom configuration file with --config-file.

Downloaded files are cached in ~/.cbdepcache to avoid repeated downloads.

Contributing

See CONTRIBUTING.md for information about development, testing, and publishing.

License

See LICENSE.txt for license information.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cbdep-1.3.7.tar.gz (59.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cbdep-1.3.7-py3-none-any.whl (26.3 kB view details)

Uploaded Python 3

File details

Details for the file cbdep-1.3.7.tar.gz.

File metadata

  • Download URL: cbdep-1.3.7.tar.gz
  • Upload date:
  • Size: 59.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.32.3

File hashes

Hashes for cbdep-1.3.7.tar.gz
Algorithm Hash digest
SHA256 33134cc6e3975f94e7daef52be5b705451de81e17b25054eff658b9c526e6f6f
MD5 6f23b337671cc6e9236a088fd9b9844c
BLAKE2b-256 f22da3da786174898a15b41ddc06a0525bc3c80d0f7c1a1e182ce869e506abcd

See more details on using hashes here.

File details

Details for the file cbdep-1.3.7-py3-none-any.whl.

File metadata

  • Download URL: cbdep-1.3.7-py3-none-any.whl
  • Upload date:
  • Size: 26.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.32.3

File hashes

Hashes for cbdep-1.3.7-py3-none-any.whl
Algorithm Hash digest
SHA256 6d400c23805fd1630776bd8a9086a8141b1e50e8a6d52936fad3f0f4ccdd82c6
MD5 5edbe9b69c7b0a9420742f045f604c88
BLAKE2b-256 4aba305090e60153432f689832ad99935ada9c4c5359a967b3c587928f9a3b7d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page