Skip to content

caml-cc/cc-store

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cc-store

Small Rust CLI for uploading, downloading, and deleting files from your own self-hosted API.

Install

Option 1: Install script (recommended)

curl -sL https://raw.githubusercontent.com/caml-cc/cc-store/refs/heads/main/scripts/install.sh -o install.sh
bash install.sh

Option 2: Manual install (system-wide)

curl -sL https://raw.githubusercontent.com/caml-cc/cc-store/refs/heads/main/scripts/install.sh -o install.sh
sudo bash install.sh

Option 3: Build from source

cargo build --release

Config

Create $HOME/.config/caml/cc-store/config.toml:

url = "domain.com"
key = "abc123"

If the file is missing, cc-store creates a starter config with empty url and key values and tells you where it wrote it.

Usage

cc-store upload file.txt # uploads the file and returns a url
cc-store upload -k 100h file.txt # uploads the file and keeps it for 100 hours
cc-store upload --keep=100h file.txt # same as above
cc-store list # lists files using the LIST request method
cc-store get {id} # downloads a file using the id
cc-store delete {id} # deletes a file using the id

cc-store get writes to stdout when redirected. If run in a terminal, it saves the file locally without overwriting existing files.

Tab completion

The install script automatically installs completion files for zsh, bash, and fish.

Related projects

fs a self-hosted file upload API.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors