Skip to Content

pelican object put

Send a file to a Pelican federation

pelican object put {source ...} {destination} [flags]

Options

--async Run the transfer asynchronously through the client API server and return a job ID --checksum-algorithm string Checksum algorithm to use for upload and validation --checksums string Verify files against a checksums manifest. The format is ALGORITHM:FILENAME --dest-token string Token file for the destination (overrides --token for writes) --dry-run Show what would be uploaded without actually uploading -h, --help help for put --metadata-body string Path to a file holding an opaque metadata blob (e.g. an XML manifest). When supplied, the upload PUT is sent as multipart/form-data and the blob is forwarded to the origin's metadata-publish endpoint byte-for-byte. May be used alongside --metadata-file. --metadata-content-type string Override the Content-Type of the metadata blob supplied via --metadata-body. Defaults to a value sniffed from the file extension (.xml ⇒ application/xml, .json ⇒ application/json, .yaml/.yml ⇒ application/yaml, .txt ⇒ text/plain, .csv ⇒ text/csv, otherwise application/octet-stream). --metadata-file string Path to a JSON file whose top-level keys are forwarded to the origin's metadata-publish endpoint via the X-Pelican-Object-Metadata header. Values must be string, number, or boolean. The keys 'path', 'size', 'etag', and 'created_at' are reserved and will be rejected. --pack string Package transfer using remote packing functionality (same as '?pack=' query). Options: auto, tar, tar.gz, tar.xz, zip. Default: auto when flag is provided without an explicit value -r, --recursive Recursively upload a collection. Forces methods to only be http to get the freshest collection contents --require-checksum Require the server to return a checksum for the uploaded file (uses crc32c algorithm if no specific algorithm is specified) -t, --token string Token file to use for transfer --transfer-stats string File to write transfer stats to --wait When used with --async, wait for the job to complete before returning

Options inherited from parent commands

--config string config file (default is $HOME/.config/pelican/pelican.yaml) -d, --debug Enable debug log messages -f, --federation string Pelican federation to utilize --json output results in JSON format -L, --log string Specified log output file --version Print the version and exit

SEE ALSO