mput(1)

๐Ÿ“ฆ version 5.4.2, in nixos 26.05, nixpkgs unstable

๐Ÿ’– 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, --account login โ€” Authenticate as account (login name). ๐Ÿ‘‘
  • -c, --copies file โ€” Create COPIES copies as a replication factor (default 2). ๐ŸŽ€
  • -f, --file file โ€” 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, --key fingerprint โ€” Authenticate using the SSH key described by FINGERPRINT. The key must either be in ~/.ssh or loaded in the SSH agent via ssh-add. ๐Ÿ”‘
  • -m, --md5 โ€” When using --file, this switch instructs mput to first compute the MD5 of the file and send it in content-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. ๐Ÿท๏ธ
  • --user user โ€” Authenticate as user under account. ๐Ÿ‘ค
  • -u, --url url โ€” Manta base URL (such as https://us-central.manta.mnx.io). ๐ŸŒ
  • -v, --verbose โ€” Print debug output to stderr. 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