The CLI tool for s3share. It is used to upload and manage files and offers an alternative to downloading through the web interface.
s3share-cli can be easily installed through go:
go install github.com/maxr1998/s3share-cli@latestOn Arch Linux, an AUR package is available: s3share-cli-git.
The CLI expect a configuration file config.toml in any of the following locations:
$XDG_CONFIG_HOME/s3share/config.toml(usually~/.config/s3share/config.toml)~/.config/s3share/config.toml./config.toml(in the current directory)
A template is provided in config_template.toml. The following keys are required:
service.host: the hostname of the site deployed to Cloudflare Pages.upload.*: these keys correspond to theS3_*environment variables as described in the main README.kv.account_id: your Cloudflare account ID.kv.api_token: a Cloudflare Account API token with theAccount.Workers KV Storage:Editpermission.kv.namespace_id: the ID of the Workers KV namespace to use.
See s3share-cli --help.