Skip to main content
Arga provisions Google Drive, Google Docs, and Google Sheets as separate twins. Docs and Sheets each include their provider-compatible API and an interactive editor UI. When you combine these twins under one Twin Run ID, they share synchronized file state while keeping their API surfaces separate. The Google Workspace CLI (gws) reads a separate Discovery document for each service, so one CLI session can use all three.

Prerequisites

Install jq, curl, and gws, then authenticate the Arga CLI:
1

Provision the Google service twins

Provision only the services your workflow calls. This example includes Drive metadata and both editor APIs.
2

Install each Discovery document

Create an isolated gws configuration directory and cache each provisioned service’s Discovery document.
gws now generates its normal Drive, Docs, and Sheets commands from the three twin Discovery documents. Do not run gws auth login; the twin token provides authentication.
3

Access the matching preset resources

The default Drive metadata includes the same stable Docs and Sheets IDs exposed by the editor twins.
Open $ARGA_DOCS_URL or $ARGA_SHEETS_URL in your browser to inspect and edit each twin through its UI. UI and API changes use the same run-scoped state, so an edit in Docs or Sheets is reflected in the matching Drive file.
4

End the twin run

Within one Twin Run ID, any two or more selected twins from google_drive, google_docs, and google_sheets share file metadata, content, permissions, revisions, creates, edits, renames, trash, and deletes. State never carries across different Twin Run IDs.
TWIN_JSON and GOOGLE_WORKSPACE_CLI_TOKEN contain credentials. Do not print, commit, or share them. Repeat the configuration step for each new Twin Run.
See the Google Drive, Google Docs, and Google Sheets twin references for supported API and UI behavior.