How to Upload Files to Google Drive with CLI

What you’ll need

Connecting to Google Drive

Use the gdrive protocol and connect to the host:

From the prompt enter the connect command:

fzcli> connect gdrive://


fzcli> connect gdrive://

Optionally you can use the parameters of the connect command:

fzcli> connect –protocol gdrive –user <user-id> –path <path>

Note that the path is optional but if present it has to start with a slash.
An authorization URL is shown. Open the authorization URL in a browser and
follow the steps to authorize FileZilla Pro Command Line.

Listing the root directory shows the virtual folders:

    My Drive
    Shared drive
    Shared with me

You can now transfer files between your local machine and your Google Drive account.

Tags: , , , ,