docs: drive: update config walkthrough to match current prompts - fixes #7132

The example `rclone config` session in the Google Drive docs was
written for an older version and no longer matched what rclone prints.
In particular it left out the "Edit advanced config?" question, which
comes straight after service_account_file, so users following along
could answer "y" to it by accident thinking it was the web browser
question.

The session now shows the current prompts: the "Option <name>."
headers, the "Enter a value" hints, `\ (drive)` choice values, the
"Edit advanced config?" question, and the "Yes (default)" markers.
It also lists the options actually saved, including team_drive.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
preservedpieandClaude Opus 5.5 authored and Nick Craig-Wood committed 2026-11-21 17:25:19 +00:00
1 parent ec1eb597b1
commit 02bbeea992
1 file changed
+54 -21
+54 -21
View File
@@ -27,48 +27,70 @@ This will guide you through an interactive setup process:
```text
No remotes found, make a new one?
n) New remote
r) Rename remote
c) Copy remote
s) Set configuration password
q) Quit config
n/r/c/s/q> n
n/s/q> n
Enter name for new remote.
name> remote
Option Storage.
Type of storage to configure.
Choose a number from below, or type in your own value
Choose a number from below, or type in your own value.
[snip]
XX / Google Drive
\ "drive"
\ (drive)
[snip]
Storage> drive
Option client_id.
Google Application Client Id
Leave blank to use rclone's shared client_id, or if you are using a service account.
The shared client_id is being retired and will stop working during 2026, so creating your own is now strongly recommended.
See https://rclone.org/drive/#making-your-own-client-id for how to create your own.
Enter a value. Press Enter to leave empty.
client_id>
Option client_secret.
Google Application Client Secret
Leave blank to use rclone's shared client_id, or if you are using a service account.
If you created your own client_id then enter its client secret here.
Enter a value. Press Enter to leave empty.
client_secret>
Scope that rclone should use when requesting access from drive.
Choose a number from below, or type in your own value
Option scope.
Comma separated list of scopes that rclone should use when requesting access from drive.
Choose a number from below, or type in your own value.
Press Enter to leave empty.
1 / Full access all files, excluding Application Data Folder.
\ "drive"
\ (drive)
2 / Read-only access to file metadata and file contents.
\ "drive.readonly"
\ (drive.readonly)
/ Access to files created by rclone only.
3 | These are visible in the drive website.
| File authorization is revoked when the user deauthorizes the app.
\ "drive.file"
\ (drive.file)
/ Allows read and write access to the Application Data folder.
4 | This is not visible in the drive website.
\ "drive.appfolder"
\ (drive.appfolder)
/ Allows read-only access to file metadata but
5 | does not allow any access to read or download file content.
\ "drive.metadata.readonly"
\ (drive.metadata.readonly)
scope> 1
Service Account Credentials JSON file path - needed only if you want use SA instead of interactive login.
Option service_account_file.
Service Account Credentials JSON file path.
Leave blank normally.
Needed only if you want use SA instead of interactive login.
Leading `~` will be expanded in the file name as will environment variables such as `${RCLONE_CONFIG_DIR}`.
Enter a value. Press Enter to leave empty.
service_account_file>
Remote config
Edit advanced config?
y) Yes
n) No (default)
y/n> n
rclone's shared Google Drive client_id is being retired and will stop working during 2026.
Create your own to avoid interruption: https://rclone.org/drive/#making-your-own-client-id
@@ -76,36 +98,47 @@ Continue using the shared client_id anyway?
y) Yes
n) No (default)
y/n> n
Option client_id.
Google Application Client Id
Enter a value.
client_id> 1234567890-abcdefghijklmnop.apps.googleusercontent.com
Option client_secret.
Google Application Client Secret
Enter a value.
client_secret> GOCSPX-your-client-secret
Use web browser to automatically authenticate rclone with remote?
* Say Y if the machine running rclone has a web browser you can use
* Say N if running rclone on a (remote) machine without web browser access
If not sure try Y. If Y failed, try N.
y) Yes
y) Yes (default)
n) No
y/n> y
If your browser doesn't open automatically go to the following link: http://127.0.0.1:53682/auth
Log in and authorize rclone for access
Waiting for code...
Got code
Configure this as a Shared Drive (Team Drive)?
y) Yes
n) No
n) No (default)
y/n> n
Configuration complete.
Options:
type: drive
- type: drive
- scope: drive
- client_id: 1234567890-abcdefghijklmnop.apps.googleusercontent.com
- client_secret: GOCSPX-your-client-secret
- scope: drive
- root_folder_id:
- service_account_file:
- token: {"access_token":"XXX","token_type":"Bearer","refresh_token":"XXX","expiry":"2014-03-16T13:57:58.955387075Z"}
- team_drive:
Keep this "remote" remote?
y) Yes this is OK
y) Yes this is OK (default)
e) Edit this remote
d) Delete this remote
y/e/d> y