maton google-drive file upload

maton google-drive file upload <file> [flags]

Upload a local file to Drive via files.create with uploadType=multipart. MIME type is detected from the extension; pass –parent to drop the file inside a specific folder, –name to override the destination filename.

Options

--connection <string>
Connection ID to route through (Maton-Connection header)
--dry-run
Print the request that would be sent without executing it
--format <string>
Output format: 'json' (default) or 'text' on supported commands
-q, --jq <expression>
Filter JSON output using a jq expression
--mime-type <string>
Override the detected MIME type
--name <string>
Target filename in Drive (defaults to source filename)
--paginate
Follow next_cursor and concatenate all pages (list commands only)
--parent <string>
Parent folder ID
--supports-all-drives
Set when uploading to a shared drive
--template <string>
Format JSON output using a Go template; see "maton help formatting"

Options inherited from parent commands

-p, --profile <string>
Profile to use for this invocation (overrides the active profile; also reads MATON_PROFILE)

Examples

$ maton google-drive file upload ./report.pdf
$ maton google-drive file upload ./report.pdf --parent 1FoLd...
$ maton google-drive file upload ./data.csv --name 'Sales Data.csv'

See also