maton google-drive file create
maton google-drive file create [flags]
Create an empty Drive entity. Pass –mime-type ‘application/vnd.google-apps.folder’ for a folder, ‘…document’ / ‘…spreadsheet’ / ‘…presentation’ for blank Google-native docs. To upload binary content, use ‘file upload’.
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> - Drive MIME type (required)
-
--name <string> - File or folder name (required)
-
--paginate - Follow next_cursor and concatenate all pages (list commands only)
-
--parent <string> - Parent folder ID
-
--supports-all-drives - Set when creating inside 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 create --name 'Q1 reports' --mime-type application/vnd.google-apps.folder
$ maton google-drive file create --name 'Notes' --mime-type application/vnd.google-apps.document --parent 1FoLd...
$ maton google-drive file create --name 'Sales' --mime-type application/vnd.google-apps.spreadsheet