Opening a browser to share a file you just built in a terminal breaks your flow, and it does not work at all on a server or in a CI pipeline. The Sehihi CLI uploads files and prints a share link in one command, with the same resumable, checksummed uploads as the web app.
Install and sign in
The CLI needs Node.js 20 or newer. Create an API key on your account page, then:
npm install -g @sehihi/cli
sehihi login --key sehihi_…
sehihi whoamiDon't want a global install? Prefix any command with npx @sehihi/cli.
Send files and get a link
# One file, link valid for 7 days
sehihi send report.pdf --expires 7
# Several files with a password and a title
sehihi send cut-v3.mov stills/*.jpg --password "lantern-orbit-velvet" --title "Final cut"
# Change or revoke a link later
sehihi transfers
sehihi edit <id> --expires 3
sehihi delete <id>Anyone can download a share link from the command line, too, with no key needed: sehihi download https://sehihi.com/t/<id> --out ./inbox.
A persistent drive for scripts
Share links expire. For files a script needs again later, use the drive: private storage that keeps files at a path until you delete them.
sehihi put ./build.zip releases/ # folder paths end in "/"
sehihi ls releases/
sehihi get releases/build.zip ./
sehihi share releases/build.zip --expires 3 # a link to a snapshot of the fileUse it in CI
In pipelines, skip login and set two environment variables from your CI's secret store. Add --json to get machine-readable output you can parse.
# GitHub Actions step
- name: Share build
env:
SEHIHI_API_KEY: ${{ secrets.SEHIHI_API_KEY }}
run: |
LINK=$(npx -y @sehihi/cli send dist/app.zip --expires 7 --json | jq -r .url)
echo "Build: $LINK" >> "$GITHUB_STEP_SUMMARY"In JSON mode, errors exit with code 1 and print {"error": "..."}, so a failed upload fails the step instead of passing silently.
Tips
- Use a dedicated key for CI and revoke it when the pipeline is retired.
- Give read-only keys to jobs that only download.
- Pick short expiries for build artifacts. Nobody needs last month's nightly build.
- Check integrity of what you deliver with SHA-256. See how to verify files.
