File uploads

CLI commands for repo-scoped file uploads.

Commands

  • list-file-uploads
  • get-file-upload
  • create-file-upload
  • update-file-upload
  • delete-file-upload
  • download-file-upload-content

Examples

pearing-cli list-file-uploads teams/platform/website
pearing-cli create-file-upload website \
  --file ./screenshot.png \
  --description "Build screenshot"
pearing-cli download-file-upload-content website a1b2c3d4-... --output ./screenshot.png

Help Output

list-file-uploads <REPO>
get-file-upload <REPO> <UUID>
create-file-upload [OPTIONS] --file <FILE> <REPO>
update-file-upload [OPTIONS] <REPO> <UUID>
delete-file-upload <REPO> <UUID>
download-file-upload-content [OPTIONS] <REPO> <UUID>

Notes

  • create-file-upload reads a local file and uploads it as multipart form data.
  • download-file-upload-content writes the stored bytes to stdout unless --output is set.
  • Deletes are permanent from the caller's perspective; the underlying soft-delete is an implementation detail.