Skip to content

Latest commit

 

History

History
41 lines (29 loc) · 1.23 KB

File metadata and controls

41 lines (29 loc) · 1.23 KB

rc pipe

Purpose

rc pipe streams stdin directly into an object. Use it for generated data, shell pipelines, and backups that should not be written to a temporary local file first.

Syntax

rc [GLOBAL OPTIONS] pipe [OPTIONS] <ALIAS/BUCKET/KEY>

Parameters

Parameter Description
ALIAS/BUCKET/KEY Destination object path.
--content-type Object content type. Defaults to application/octet-stream.
--storage-class Storage class for the uploaded object.

Examples

tar -czf - ./logs | rc pipe local/backups/logs.tar.gz --content-type application/gzip
printf 'hello\n' | rc pipe local/tmp/hello.txt --content-type text/plain

Behavior

The command reads from stdin until EOF and uploads that stream as the destination object.

Global options shown in command syntax use the same meaning everywhere:

Option Description
--format auto|human|json Select automatic, human-readable, or JSON output.
--json Emit JSON output where the command supports structured output.
--no-color Disable terminal colors.
--no-progress Disable progress bars.
-q, --quiet Suppress non-error output.
--debug Enable debug logging.