maton one-drive item create-folder
Create a new folder under the root, a parent path, or a parent ID
maton one-drive item create-folder <name> [flags]
Options
-
--conflict <string> (default "fail") - Conflict behavior: fail, replace, rename
-
--connection <string> - Connection ID to route through (Maton-Connection header)
-
--dry-run - Print the request that would be sent without executing it
-q,--jq <expression>- Filter JSON output using a jq expression
-
--json - Output raw JSON
-
--paginate - Follow next_cursor and concatenate all pages (list commands only)
-
--parent-id <string> - Parent folder ID
-
--path <string> - Parent folder path (e.g. Documents/Projects)
-t,--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 one-drive item create-folder Reports
$ maton one-drive item create-folder Reports --path Documents/Projects
$ maton one-drive item create-folder Reports --parent-id 01ABCDEF
$ maton one-drive item create-folder Reports --conflict rename