Difference between revisions of "Gdrive help upload"
Jump to navigation
Jump to search
(Created page with "{{lc}} == See also == * {{gdrive}} Category:Google Drive") |
|||
Line 1: | Line 1: | ||
{{lc}} | {{lc}} | ||
+ | |||
+ | [[gdrive help]] upload | ||
+ | <pre> | ||
+ | Upload file or directory | ||
+ | gdrive [global] upload [options] <path> | ||
+ | |||
+ | global: | ||
+ | -c, --config <configDir> Application path, default: /root/.gdrive | ||
+ | --refresh-token <refreshToken> Oauth refresh token used to get access token (for advanced users) | ||
+ | --access-token <accessToken> Oauth access token, only recommended for short-lived requests because of short lifetime (for advanced users) | ||
+ | --service-account <serviceAccount> Oauth service account filename, used for server to server communication without user interaction (filename path is relative to config dir) | ||
+ | |||
+ | options: | ||
+ | -r, --recursive Upload directory recursively | ||
+ | -p, --parent <parent> Parent id, used to upload file to a specific directory, can be specified multiple times to give many parents | ||
+ | --name <name> Filename | ||
+ | --description <description> File description | ||
+ | --no-progress Hide progress | ||
+ | --mime <mime> Force mime type | ||
+ | --share Share file | ||
+ | --delete Delete local file when upload is successful | ||
+ | --timeout <timeout> Set timeout in seconds, use 0 for no timeout. Timeout is reached when no data is transferred in set amount of seconds, default: 300 | ||
+ | --chunksize <chunksize> Set chunk size in bytes, default: 8388608 | ||
+ | </pre> | ||
== See also == | == See also == |
Revision as of 17:16, 17 September 2022
gdrive help upload
Upload file or directory gdrive [global] upload [options] <path> global: -c, --config <configDir> Application path, default: /root/.gdrive --refresh-token <refreshToken> Oauth refresh token used to get access token (for advanced users) --access-token <accessToken> Oauth access token, only recommended for short-lived requests because of short lifetime (for advanced users) --service-account <serviceAccount> Oauth service account filename, used for server to server communication without user interaction (filename path is relative to config dir) options: -r, --recursive Upload directory recursively -p, --parent <parent> Parent id, used to upload file to a specific directory, can be specified multiple times to give many parents --name <name> Filename --description <description> File description --no-progress Hide progress --mime <mime> Force mime type --share Share file --delete Delete local file when upload is successful --timeout <timeout> Set timeout in seconds, use 0 for no timeout. Timeout is reached when no data is transferred in set amount of seconds, default: 300 --chunksize <chunksize> Set chunk size in bytes, default: 8388608
See also
Advertising: