Minimal Bun CLI for tracked S3 uploads.
Install:
npm install -g s3-storage-cliRuntime requirement:
bunmust be installed because the published CLI executes with Bun
Install without global npm setup:
npx s3-storage-cli statusQuick start:
s3-storage setup
s3-storage statusCommands:
setupprompts for required scoped config values and saves them for this CLIstatusverifies env, SQLite, and S3 connectivitylistshows only objects tracked by this CLIuploaduploads one or more files or directories, with optional--namefor single-file remote renamesdeleteremoves tracked objectssharereturns a direct public URL or a signed private URL
Scoped config keys used by this CLI:
S3_STORAGE_CLI_ENDPOINTS3_STORAGE_CLI_REGIONS3_STORAGE_CLI_ACCESS_KEY_IDS3_STORAGE_CLI_SECRET_ACCESS_KEYS3_STORAGE_CLI_BUCKET
Required for full readiness and public sharing:
S3_STORAGE_CLI_PUBLIC_BASE_URL
Optional env:
S3_STORAGE_CLI_DB_PATHS3_STORAGE_CLI_SHARE_TTL_SECONDSS3_STORAGE_CLI_SESSION_TOKENS3_STORAGE_CLI_VIRTUAL_HOSTED_STYLES3_STORAGE_CLI_ENV_PATH
setup writes the required scoped config to the CLI-owned env file under ~/.s3-storage-cli/config.env by default.
Examples:
s3-storage setup
s3-storage upload ./file.txt
s3-storage upload ./file.txt --name invoice.txt
s3-storage upload ./assets --public --prefix site
s3-storage list
s3-storage share site/assets/logo.png
s3-storage delete site/assets/logo.pngThis repo is also compatible with skills.sh style skill installers.
List the skill from GitHub:
npx skills add muneebhashone/s3-storage-cli -lInstall the skill:
npx skills add muneebhashone/s3-storage-cli --skill s3-storage-cli