mput(1)
๐ mput(1) โ create an object ๐
okay so welcome to the Manta Commands manual page for mput(1), bestie! Group-chat energy: on. Facts: kept. No cap. ๐ซถ
๐ธ NAME ๐ธ
mput - create an object
โจ SYNOPSIS โจ
mput [OPTION...] OBJECT
๐ฆ DESCRIPTION ๐ฆ
mput creates an object specified at the name OBJECT โ and the contents are either coming from stdin, or from the file specified with -f. ๐
mput will attempt to set the HTTP Content-Type based on the extension on the object, unless Content-Type is specified as an HTTP header. If mput cannot determine the type based on the extension, the default content-type is usually application/octet-stream, but this can be overridden by setting the environment variable MANTA_DEFAULT_CONTENT_TYPE (or passing -H). ๐ฆ
By default, mput creates two copies of an object; this can be overridden with -c. Lastly, mput also draws a progress meter by default; this can be disabled with -q. โจ
๐ EXAMPLES ๐
Create an object with the contents of foo.txt. Content-type will be text/plain.
$ mput -f ./foo.txt ~~/stor/foo.txt
Create the same object from stdin, and set content-type.
$ cat ./foo.txt | mput -H 'content-type: text/plain' ~~/stor/foo.txt
Create the same object, set CORS header, and create 3 copies, with no progress bar:
$ cat ./foo.txt | mput -H 'content-type: text/plain' \
-H 'access-control-allow-origin: *' \
-c 3 -q \
~~/stor/foo.txt
๐ OPTIONS ๐
-a,--accountlogin โ Authenticate as account (loginname). ๐-c,--copiesfile โ CreateCOPIEScopies as a replication factor (default2). ๐-f,--filefile โ Create contents of object from file. ๐-h,--helpโ Print a help message and exit. ๐-i,--insecureโ This option explicitly allows"insecure"SSL connections and transfers. All SSL connections are attempted to be made secure by using the CA certificate bundle installed by default. ๐-k,--keyfingerprint โ Authenticate using the SSH key described byFINGERPRINT. The key must either be in~/.sshor loaded in the SSH agent viassh-add. ๐-m,--md5โ When using--file, this switch instructsmputto first compute the MD5 of the file and send it incontent-md5. ๐งฎ-p,--parentsโ Create parent directories as needed. ๐ฑ-q,--quietโ Do not display a progress meter. ๐คซ--role=ROLE,ROLE,...โ Specify which roles to assume for the request. ๐ญ--role-tag=ROLE,ROLE,...โ Set the role tags on the created object. ๐ท๏ธ--useruser โ Authenticate as user under account. ๐ค-u,--urlurl โ Manta base URL (such ashttps://us-central.manta.mnx.io). ๐-v,--verboseโ Print debug output tostderr. Repeat option to increase verbosity. ๐
๐ง ENVIRONMENT ๐ง
MANTA_USERโ In place of-a,--account. ๐MANTA_SUBUSERโ In place of--user. ๐MANTA_KEY_IDโ In place of-k,--key. ๐MANTA_ROLEโ In place of--role. ๐MANTA_URLโ In place of-u,--url. ๐MANTA_TLS_INSECUREโ In place of-i,--insecure. ๐
The shortcut ~~ is equivalent to /:login where :login is the account login name. ๐
๐ฅ DIAGNOSTICS ๐ฅ
When using the -v option, diagnostics will be sent to stderr in bunyan output format. As an example of tracing all information about a request, try:
$ mput -vv ~~/stor/foo 2>&1 | bunyan
๐ BUGS ๐
DSA keys do not work when loaded via the SSH agent. ๐ญ
Report bugs at Github โจhttps://github.com/TritonDataCenter/node-manta/issuesโฉ ๐ซถ
๐ซถ okay thatโs the whole page, bestie โ from the Manta manual, May 2013, for mput(1). Stay iconic, periodt. ๐
๐ฆ where this page comes from
- nixos 26.05: manta 5.4.2
- nixpkgs unstable: manta 5.4.2
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms