Skip to content

Navigation Menu

Sign in
Sign up

Repository files navigation

@lambdacurry/upfile

Upload a local file to Lambda Curry's public file drop and print its permanent URL.

Run

npx @lambdacurry/upfile screenshot.png
npx @lambdacurry/upfile demo.mp4 --json
cat report.txt | npx @lambdacurry/upfile --json

Or install it globally:

npm install --global @lambdacurry/upfile
upfile screenshot.png

Configure

Use an environment variable, which takes precedence and works well in CI:

export UPFILE_API_KEY=...

Or save the key in the current user's configuration:

upfile config set api-key ...

The default endpoint is https://slopfiles.lambdacurry.dev. Override it with:

upfile config set endpoint https://files.example.com

On Linux and macOS the configuration is stored at ~/.upfile/config.json with owner-only permissions. On Windows it is stored in the user's home directory.

Commands

upfile <file> [--json] Upload a file
upfile doctor Verify authentication and connectivity
upfile rm <id> Delete an uploaded file
upfile config Show configuration
upfile --version Show the installed version

Codex skill

Install the companion share-files skill from this repository:

python3 "${CODEX_HOME:-$HOME/.codex}/skills/.system/skill-installer/scripts/install-skill-from-github.py" \
 --repo lambda-curry/upfile \
 --path skills/share-files

Then configure the upload key on that machine:

npx --yes @lambdacurry/upfile@latest config set api-key <key>

Restart Codex after installing the skill.

Worker

The Cloudflare Worker serving slopfiles.lambdacurry.dev lives in worker/. See its README for local checks and deployment instructions.

License: MIT. Forked from upfilesh/cli.

About

CLI for upfile.sh — instant file uploads from the terminal

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

AltStyle によって変換されたページ (->オリジナル) /