Crates.io | catbox-cli |
lib.rs | catbox-cli |
version | |
source | src |
created_at | 2024-11-30 09:38:41.901187 |
updated_at | 2024-12-06 11:49:12.177071 |
description | A simple catbox cli that has progress when uploading! |
homepage | https://github.com/JustSimplyKyle/catbox-cli |
repository | https://github.com/JustSimplyKyle/catbox-cli |
max_upload_size | |
id | 1466445 |
Cargo.toml error: | TOML parse error at line 17, column 1 | 17 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
catbox-cli
is a simple cli tool that uploads to catbox.moe
. It differs from other solution is that is not simply an api wrapper. It also acts as an alternative front end to catbox.moe
, allowing you to do more things than the api allows.
catbox-cli
Compared to other catbox cli providers, it has the following benefits.
argh::Command
This is vital for catbox-cli
, as it does not use the traditional CATBOX_USER_HASH
for authentication. It uses cookies to authenticate, so you will have to provide your username and password to catbox-cli
. Your credentials are not stored in plain text, instead guarded by your system's integrated password storer, which supports MacOs, Windows, and Linux.
Use the following line to add credentials for catbox-cli
to use.
cbx config save --username [your_user_name] --password [your_pass_word]
If you want to delete your credentials, simply type:
cbx config delete
For uploading files, type:
cbx file upload [file1] [file2] [file3]
The aforementioned progress bar can be seen here!
You can list all the files you have uploaded with:
cbx file list
Listing albums that were created by you is as simple as:
cbx album list
cbx album list --album [album_id]
You can get [album_id]
by cbx album list
catbox.moe
to an albumFor example, adding w0v6bk.webm
and 7mc3en.pdf
to album hpxdlu
:
cbx album w0v6bk.webm 7mc3en.pdf --album hpxdlu
This will error when the given file is not found in your user profile.
Sometimes you just want to add files that are your computer to an album.
You can accomplish this with cbx file upload
paired with cbx album add
, but it's quite cumbersome.
catbox-cli
provides the following command to simply uploading to an album:
cbx album upload [file1] [file2] --album [album_slug]
cbx
supports listing files with the json format using the flag -j/--json
Using -j
with unsupported command modes would result it doing nothing.
cbx --json file list