Skip to content

teamcutter/chatr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chatr

A package manager CLI for downloading, installing, and managing binary packages.

Installation

curl -sL https://raw.githubusercontent.com/teamcutter/chatr/main/install.sh | sh

Add the chatr bin directory to your PATH:

export PATH="$HOME/.chatr/bin:$PATH"

Add this line to your shell configuration file (~/.bashrc, ~/.zshrc, etc.) to make it permanent.

Build from Source

Prerequisites

  • Go 1.25 or later

Build

mkdir -p ~/.chatr/bin && go build -o ~/.chatr/bin/chatr ./cmd/chatr

Usage

Install a package

~/ chatr install hello
Downloading hello 100% |█████████████████████████████████████████████| (53/53 kB, 540 kB/s)

✓ hello@2.12.2
  cache: /Users/user/.chatr/cache/hello/2.12.2
  path: /Users/user/.chatr/packages/hello/2.12.2

~/ hello
Hello, world!

Commands

install

Install one or more packages.

chatr install <name>...
Flag Short Default Description
--version -v latest Package version
--sha256 Expected SHA256 checksum

remove

Remove one or more installed packages.

chatr remove [name...]
Flag Short Default Description
--version -v latest Package version to remove
--all false Remove all installed packages

list

List all installed packages.

chatr list

search

Search for packages in the registry.

chatr search <query>
Flag Short Default Description
--show -s 50 Number of results to display

clear

Clear the packages cache.

chatr clear

version

Print the version of chatr.

chatr version

new

Update chatr to the newest version.

chatr new

License

Apache License 2.0

About

Package manager written in go

Resources

License

Stars

Watchers

Forks

Packages

No packages published