File uploads
CLI commands for repo-scoped file uploads.
Commands
list-file-uploadsget-file-uploadcreate-file-uploadlist-file-upload-groups,get-file-upload-group,create-file-upload-group, andupdate-file-upload-groupupdate-file-uploaddelete-file-uploaddownload-file-upload-contentattach-fileanddetach-file
Examples
pearing-cli list-file-uploads teams/platform/website
pearing-cli create-file-upload website \
--file ./screenshot.png \
--description "Build screenshot"
pearing-cli create-file-upload-group website \
--file ./before.png \
--file ./after.png \
--name "Before and after"
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>
list-file-upload-groups <REPO>
get-file-upload-group <REPO> <UUID>
create-file-upload-group [OPTIONS] --file <FILE>... <REPO>
update-file-upload-group [OPTIONS] <REPO> <UUID>
update-file-upload [OPTIONS] <REPO> <UUID>
delete-file-upload <REPO> <UUID>
download-file-upload-content [OPTIONS] <REPO> <UUID>
Notes
create-file-uploadreads a local file and uploads it as multipart form data.create-file-upload-grouprequires at least two repeatable--filevalues. It preserves their order and fails without creating any members if a configured limit or write fails.download-file-upload-contentwrites the stored bytes to stdout unless--outputis set.- Deletes are permanent from the caller's perspective; the underlying soft-delete is an implementation detail.
- Use
attach-fileto associate an upload with content after creating it.