Google Cloud Storage
The robomotion googlestorage CLI connects to Google Cloud Storage for object and bucket management. It uploads, downloads, lists, deletes, copies, and moves objects; creates and manages buckets; generates signed URLs; and reads object metadata.
When to use
- Upload or download files between local filesystem and GCS buckets
- List, copy, move, or delete objects in buckets
- Create or delete GCS buckets
- Generate signed URLs for temporary access
Prerequisites
robomotionCLI installed- Package installed:
robomotion install googlestorage - Google Cloud service account credentials configured via Robomotion vault
IMPORTANT: Session Mode Required for Multi-Step Operations
Each CLI command runs as a separate process — connection IDs from connect do NOT persist across calls.
You MUST use --session on connect and pass --session-id to all subsequent commands.
Workflow
- Install (once):
robomotion install googlestorage - Connect with session:
robomotion googlestorage google_storage_connect --session --output json # → {"outClientId":"<client-id>","session_id":"<session-id>"} - Use the returned
client-idandsession-idin all subsequent commands:robomotion googlestorage google_storage_upload_object --client-id "<client-id>" --bucket-name <bucket> --file-path <local> --session-id "<session-id>" --output json - Disconnect when done:
robomotion googlestorage google_storage_disconnect --client-id "<client-id>" --session-id "<session-id>" --output json
Always append --output json to get structured JSON results.
Commands Reference
robomotion googlestorage connect_storage --session --output jsonConnect to Google Cloud Storage and create a client sessionrobomotion googlestorage read_object --gcs-id --bucket-name --object-name --output jsonRead the contents of an object from a Google Cloud Storage bucketrobomotion googlestorage upload_file --gcs-id --bucket-name --file-path [--file-name] [--30] --output jsonUpload a file to a Google Cloud Storage bucketrobomotion googlestorage delete_object --gcs-id --bucket-name --object-name --output jsonDelete an object from a Google Cloud Storage bucketrobomotion googlestorage list_bucket_objects --gcs-id --bucket-name --output jsonList all objects in a Google Cloud Storage bucketrobomotion googlestorage create_bucket --gcs-id --project-id --bucket-name [--labels] [--access-control-type] [--storage-class] --output jsonCreate a new bucket in Google Cloud Storagerobomotion googlestorage delete_bucket --gcs-id --bucket-name --output jsonDelete a bucket from Google Cloud Storagerobomotion googlestorage update_bucket --gcs-id --bucket-name --label-name --label-value [--storage-class] [--enable-versioning] --output jsonUpdate attributes of a Google Cloud Storage bucketrobomotion googlestorage list_buckets --gcs-id --project-id --output jsonList all buckets in a Google Cloud projectrobomotion googlestorage get_bucket --gcs-id --bucket-name --output jsonGet details and attributes of a Google Cloud Storage bucket
Environment
- ROBOMOTION_API_TOKEN (if vault credentials are needed)