Skip to main content

Google Drive CLI

Project description

gdrive

usage: gdrive [--all-fields] [-h] [-H] [-v] [-V] [--config FILE]
              [--print-config] [--print-url] [--completion [SHELL]]
              COMMAND ...

Google `drive` command line interface.

options:
  --all-fields          Use parms['fields'] = '*' (be verbose).

Specify one of:
  COMMAND
    about               Get information about the google user and drive.
    download            Download a file.
    files               List all files.
    folders             List all folders.
    list                List files and folders.
    rename              Rename file.
    renamelist          Rename list of files.
    uploaddir           Upload directories(s).
    uploadfile          Upload file(s).
    uploadlist          Upload list of files.

General options:
  -h, --help            Show this help message and exit.
  -H, --long-help       Show help for all commands and exit.
  -v, --verbose         `-v` for detailed output and `-vv` for more detailed.
  -V, --version         Print version number and exit.
  --config FILE         Use config `FILE` (default: `~/.libgoogle.toml`).
  --print-config        Print effective config and exit.
  --print-url           Print project url and exit.
  --completion [SHELL]  Print completion scripts for `SHELL` and exit
                        (default: `bash`).

See `gdrive COMMAND --help` for help on a specific command.

gdrive about

usage: gdrive about [-h] [--no-themes] [--pretty-print]

about.description

options:
  -h, --help      Show this help message and exit.
  --no-themes     Remove theme elements; (implies --all-fields).
  --pretty-print  Pretty-print items.

gdrive download

usage: gdrive download [-h] FILE [NEWNAME]

download.description

positional arguments:
  FILE        File to download.
  NEWNAME     Local name to assign.

options:
  -h, --help  Show this help message and exit.

gdrive files

usage: gdrive files [-h] [-l | --pretty-print] [--limit LIMIT]

files.description

options:
  -h, --help          Show this help message and exit.
  -l, --long-listing  Use a long listing format.
  --pretty-print      Pretty-print items.
  --limit LIMIT       Limit execution to `LIMIT` number of items.

gdrive folders

usage: gdrive folders [-h] [-l | --pretty-print] [--limit LIMIT]

folders.description

options:
  -h, --help          Show this help message and exit.
  -l, --long-listing  Use a long listing format.
  --pretty-print      Pretty-print items.
  --limit LIMIT       Limit execution to `LIMIT` number of items.

gdrive list

usage: gdrive list [-h] [-t | -l | --pretty-print] [-f | -d] [-R]
                   [--limit LIMIT]
                   PATH

list.description

positional arguments:
  PATH                File or folder of items to list.

options:
  -h, --help          Show this help message and exit.
  -t, --time          Use a time listing format.
  -l, --long-listing  Use a long listing format.
  --pretty-print      Pretty-print items.
  -f, --files-only    Show files only.
  -d, --folders-only  Show folders only.
  -R, --recursive     Recurse into any sub-folders, recursively.
  --limit LIMIT       Limit execution to `LIMIT` number of items.

gdrive rename

usage: gdrive rename [-h] src target

rename.description

positional arguments:
  src         File to rename.
  target      New name.

options:
  -h, --help  Show this help message and exit.

gdrive renamelist

usage: gdrive renamelist [-h] listfile

renamelist.description

positional arguments:
  listfile    File with list of renames.

options:
  -h, --help  Show this help message and exit.

gdrive uploaddir

usage: gdrive uploaddir [-h] [--add-timestamp] [--convert] [--no-convert]
                        [--target-folder TARGET_FOLDER]
                        [PATH ...]

uploaddir.description

positional arguments:
  PATH                  File to upload.

options:
  -h, --help            Show this help message and exit.
  --add-timestamp       Bake a timestamp into the target name.
  --convert             Convert to google doc.
  --no-convert          Do not convert to google doc.
  --target-folder TARGET_FOLDER
                        Root of destination tree.

gdrive uploadfile

usage: gdrive uploadfile [-h] [--add-timestamp] [--convert] [--no-convert]
                         PATH FOLDER [NEWNAME]

uploadfile.description

positional arguments:
  PATH             File to upload.
  FOLDER           Destination folder.
  NEWNAME          New name for target file.

options:
  -h, --help       Show this help message and exit.
  --add-timestamp  Bake a timestamp into the target name.
  --convert        Convert to google doc.
  --no-convert     Do not convert to google doc.

gdrive uploadlist

usage: gdrive uploadlist [-h] [--no-themes] [--add-timestamp] [--convert]
                         [--no-convert] [--target-folder TARGET_FOLDER]
                         listfile

uploadlist.description

positional arguments:
  listfile              File with list of uploads.

options:
  -h, --help            Show this help message and exit.
  --no-themes           Remove theme elements; (implies --all-fields).
  --add-timestamp       Bake a timestamp into the target name.
  --convert             Convert to google doc.
  --no-convert          Do not convert to google doc.
  --target-folder TARGET_FOLDER
                        Destination folder.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rlane_gdrive-1.0.8.tar.gz (15.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rlane_gdrive-1.0.8-py3-none-any.whl (18.4 kB view details)

Uploaded Python 3

File details

Details for the file rlane_gdrive-1.0.8.tar.gz.

File metadata

  • Download URL: rlane_gdrive-1.0.8.tar.gz
  • Upload date:
  • Size: 15.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.13.0

File hashes

Hashes for rlane_gdrive-1.0.8.tar.gz
Algorithm Hash digest
SHA256 fb2b670badcf32f9f26a33e5d0286c37a16e31b71a6e5298bddb4846cced5a18
MD5 3a1e5801873274f3237f7d17920a4536
BLAKE2b-256 1623cc0982baf123e2ec8590c2b844be2d3e8cef06c7cb4b0578e02da1e078dc

See more details on using hashes here.

File details

Details for the file rlane_gdrive-1.0.8-py3-none-any.whl.

File metadata

  • Download URL: rlane_gdrive-1.0.8-py3-none-any.whl
  • Upload date:
  • Size: 18.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.13.0

File hashes

Hashes for rlane_gdrive-1.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 e5fad3d83499a9a4e4eda6282e944044c6a648525369d60f6f02ea661f5a205d
MD5 05e9d2b64a0ddae3609dbe084feb8c4e
BLAKE2b-256 a6542b9974a3ad5fa5b7cc4e1bde5a8cf9b2ae9197e44bbb1cc388f02f796cc6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page