Command line
The eclair command encrypts and decrypts on your machine. It runs on Node.js 22 or later; the eclair.mjs file and its SHA-256 checksum are offered on the Download page once published.
Share
# From standard input (one read, expires in 24 h)
cat .env | eclair send
# A file, 2 reads, 1 hour, with a generated PIN
eclair send backup.tar.gz --views 2 --expires 1h --pin
# JSON output for scripts
eclair send --text "token" --jsonRead and track
eclair get "https://eclair.kayzen-lyon.com/s/…#v1.n.…" --out ./recu
eclair status "https://eclair.kayzen-lyon.com/gerer#v1.…"
eclair burn "https://eclair.kayzen-lyon.com/gerer#v1.…"Request a secret
eclair request create --label "Accès FTP" --deposits 1 --expires 7d
eclair request fetch "https://eclair.kayzen-lyon.com/demandes#v1.…"
eclair request close "https://eclair.kayzen-lyon.com/demandes#v1.…"In CI
# GitHub Actions: hand a configuration file to a human, once
- run: npx eclair send dist/config.json --expires 1h --json > link.jsonExit codes
- 0 — success
- 1 — usage error
- 2 — link not found, expired or already read
- 3 — wrong PIN
- 4 — network or service unavailable
- 5 — too many requests
Variables: ECLAIR_URL (instance), ECLAIR_PIN (code for get).