maton google-drive file list

maton google-drive file list [flags]

List files visible to the connection. Use -q for Drive’s query language (e.g. “mimeType=’application/vnd.google-apps.folder’”) or –paginate to follow nextPageToken.

Options

--connection <string>
Connection ID to route through (Maton-Connection header)
--corpora <string>
Bodies to search: user, drive, allDrives
--drive-id <string>
Shared drive to search (implies corpora=drive)
--dry-run
Print the request that would be sent without executing it
--fields <string>
Partial-response field mask (default: server default)
--format <string>
Output format: 'json' (default) or 'text' on supported commands
--include-items-from-all-drives
Include shared drive items in results
-q, --jq <expression>
Filter JSON output using a jq expression
--order-by <string>
Sort key, e.g. 'modifiedTime desc'
-L, --page-size <int> (default 100)
Max files per page (1-1000)
--page-token <string>
Pagination token
--paginate
Follow next_cursor and concatenate all pages (list commands only)
-Q, --query <q>
Drive query expression (the q parameter)
--spaces <string>
Comma-separated spaces: drive, appDataFolder
--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 list
$ maton google-drive file list -Q "name contains 'budget'" --format text
$ maton google-drive file list --drive-id 0AB... --include-items-from-all-drives --paginate

See also