LinuxCommandLibrary

cs-fetch

Fetch certificate information from a server

TLDR

Fetch a specific version of a .jar

$ cs fetch [group_id]:[artifact_id]:[artifact_version]
copy

Fetch a package and evaluate the classpath corresponding to the selected package in an env var
$ CP="$(cs fetch --classpath org.scalameta::scalafmt-cli:latest.release)"
copy

Fetch a source of a specific .jar
$ cs fetch --sources [group_id]:[artifact_id]:[artifact_version]
copy

Fetch the javadoc jars
$ cs fetch --javadoc [group_id]:[artifact_id]:[artifact_version]
copy

Fetch dependency with javadoc jars and source jars
$ cs fetch --default=[true] --sources --javadoc [group_id]:[artifact_id]:[artifact_version]
copy

Fetch jars coming from dependency files
$ cs fetch [--dependency-file path/to/file1 --dependency-file path/to/file2 ...]
copy

SYNOPSIS

cs-fetch [-h | --help] [--version] [-c FILE] [--gen-config] [-p PRESET] [--logo LOGO] [--backend BACKEND] [--info MODULES] [--colors COLORS]

PARAMETERS

-h, --help
    Print help and exit

--version
    Print version and exit

-c, --config FILE
    Path to custom config file

--gen-config
    Generate default config file

-p, --preset NAME
    Load preset configuration

--logo NAME
    Select ASCII or image logo (auto-detects distro)

--backend BACKEND
    Image backend: auto, kitty, sixel, chafa, iterm2

-d, --device DEVICE
    Device info: auto, cpu, gpu

--info MODULES
    Comma-separated modules to show (or 'all')

--colors COLORS
    Space-separated 16 ANSI colors

-s, --speed 1-5
    Backend rendering speed (higher=faster)

DESCRIPTION

cs-fetch is a lightweight, high-performance system information tool inspired by neofetch. Written in the Crystal programming language, it compiles to native code for superior speed compared to shell-script based alternatives. It displays an ASCII or image-based logo alongside key system details like OS, kernel, CPU, GPU, memory, uptime, and shell.

Key features include customizable modules, multiple image backends (kitty, sixel, chafa, iTerm2), color schemes, presets, and config files. It's ideal for terminal enthusiasts wanting quick, beautiful system stats without bloat. Supports Linux, macOS, BSD, and more.

Unlike slower tools, cs-fetch prioritizes minimal resource use and blazing startup times, making it perfect for dotfiles, ricing, or login scripts. Generate configs easily and tweak logos per distro.

CAVEATS

Image backends require libs like libsixel or chafa; ASCII fallback used otherwise. Limited Windows support. Config paths relative to XDG.

INSTALLATION

Via Crystal shards: shards install cs-fetch; binaries on GitHub releases; AUR for Arch, Homebrew for macOS.

CONFIGURATION

JSON-like config at ~/.config/cs-fetch/config.json. Edit modules array, colors, logo. Run --gen-config to start.

HISTORY

Developed in 2022 by bneedhamia as a Crystal rewrite of neofetch for better performance. Gained popularity on GitHub for speed benchmarks outperforming Go/Rust alternatives. Actively maintained with distro logo additions.

SEE ALSO

neofetch(1), fastfetch(1), screenfetch(1), hyfetch(1)

Copied to clipboard