I have been using service account credentials with Google drive and rclone for some time. However it has gotten to the point where I need to dynamically pass the credentials in to some of our scripting for better security and flexibility. I have been attempting this for a few hours and not gotten anywhere trying to pass the json blob in to the command and it accept it always errors with this.
rclone lsd remote:path [flags]
Command lsd needs 1 arguments maximum: you provided 5 non flag arguments:
I am working in powershell core v6.1.1 on Windows.
I am testing on the latest beta build. rclone: Version “v1.47.0-002-gf5795db6-beta”
rclone lsd :drive:test --drive-team-drive=“driveID” --drive-client-id=“clientID” --drive-client-secret=“secret” --drive-scope=drive --drive-impersonate email@example.com --fast-list --log-level DEBUG --log-file=.\test.log --drive-service-account-credentials=“json-blob”
What is the --drive-service-account-credentials expecting?
Secondly do you have any suggest passing this to rclone properly within powershell?