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 www.googleapis.com host:

From the prompt enter the connect command:

fzcli> connect gdrive://user-id@www.googleapis.com

 

fzcli> connect gdrive://demouser@gmail.com@www.googleapis.com

Optionally you can use the parameters of the connect command:

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

    www.googleapis.com

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: , , , ,