Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
googleworkspace avatar

Gws Drive

  • 61.9k installs
  • 30k repo stars
  • Updated July 22, 2026
  • googleworkspace/cli

gws-drive is a CLI skill that provides zero-boilerplate access to Google Drive APIs with structured JSON output for developers and agents.

About

gws-drive is a CLI skill that provides programmatic access to Google Drive without writing REST calls. It returns structured JSON output suitable for AI agents and developers. The skill includes 40+ helper agents for common workflows like file uploads, directory traversal, and bulk operations.

  • CLI for Google Drive with zero boilerplate and structured JSON output
  • 40+ agent skills for file operations and automation
  • Auto-generated API surface using Google Discovery Service

Gws Drive by the numbers

  • 61,859 all-time installs (skills.sh)
  • +2,451 installs in the week ending Jul 28, 2026 (Skillselion tracking)
  • Ranked #16 of 690 Office & Documents skills by installs in the Skillselion catalog
  • Security screen: MEDIUM risk (skills.sh audit)
  • Data as of Jul 28, 2026 (Skillselion catalog sync)
At a glance

gws-drive capabilities & compatibility

Works with
google drive
Use cases
api development · orchestration
Pricing
Free
npx skills add https://github.com/googleworkspace/cli --skill gws-drive

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs61.9k
repo stars30k
Security audit2 / 3 scanners passed
Last updatedJuly 22, 2026
Repositorygoogleworkspace/cli

How do you manage Google Drive from the terminal?

Access Google Drive files programmatically via CLI with structured output for agent automation

Who is it for?

Developers building agents that need programmatic Drive access, file automation workflows

Skip if: UI-based file management, desktop file sync

When should I use this skill?

The user asks to upload, list, organize, or manage Google Drive files, folders, or shared drives using gws or terminal commands.

What you get

Executed `gws drive` operations with updated files, folders, shared drives, and Drive metadata.

  • Drive file operations
  • folder and shared drive changes

By the numbers

  • Skill metadata version 0.22.5
  • Targets Google Drive API v3 via gws CLI

Files

SKILL.mdMarkdownGitHub ↗

drive (v3)

PREREQUISITE: Read ../gws-shared/SKILL.md for auth, global flags, and security rules. If missing, run gws generate-skills to create it.
gws drive <resource> <method> [flags]

Helper Commands

CommandDescription
`+upload`Upload a file with automatic metadata

API Resources

about

  • get — Gets information about the user, the user's Drive, and system capabilities. For more information, see Return user info. Required: The fields parameter must be set. To return the exact fields you need, see Return specific fields.

accessproposals

approvals

  • get — Gets an Approval by ID.
  • list — Lists the Approvals on a file.

apps

changes

channels

comments

drives

  • create — Creates a shared drive. For more information, see Manage shared drives.
  • get — Gets a shared drive's metadata by ID. For more information, see Manage shared drives.
  • hide — Hides a shared drive from the default view. For more information, see Manage shared drives.
  • list — Lists the user's shared drives. This method accepts the q parameter, which is a search query combining one or more search terms. For more information, see the Search for shared drives guide.
  • unhide — Restores a shared drive to the default view. For more information, see Manage shared drives.
  • update — Updates the metadata for a shared drive. For more information, see Manage shared drives.

files

  • copy — Creates a copy of a file and applies any requested updates with patch semantics. For more information, see Create and manage files.
  • create — Creates a file. For more information, see Create and manage files. This method supports an /upload URI and accepts uploaded media with the following characteristics: - Maximum file size: 5,120 GB - Accepted Media MIME types: */* (Specify a valid MIME type, rather than the literal */* value. The literal */* is only used to indicate that any valid MIME type can be uploaded.
  • download — Downloads the content of a file. For more information, see Download and export files. Operations are valid for 24 hours from the time of creation.
  • export — Exports a Google Workspace document to the requested MIME type and returns exported byte content. For more information, see Download and export files. Note that the exported content is limited to 10 MB.
  • generateIds — Generates a set of file IDs which can be provided in create or copy requests. For more information, see Create and manage files.
  • get — Gets a file's metadata or content by ID. For more information, see Search for files and folders. If you provide the URL parameter alt=media, then the response includes the file contents in the response body. Downloading content with alt=media only works if the file is stored in Drive.
  • list — Lists the user's files. For more information, see Search for files and folders. This method accepts the q parameter, which is a search query combining one or more search terms. This method returns all files by default, including trashed files. If you don't want trashed files to appear in the list, use the trashed=false query parameter to remove trashed files from the results.
  • listLabels — Lists the labels on a file. For more information, see List labels on a file.
  • modifyLabels — Modifies the set of labels applied to a file. For more information, see Set a label field on a file. Returns a list of the labels that were added or modified.
  • update — Updates a file's metadata, content, or both. When calling this method, only populate fields in the request that you want to modify. When updating fields, some fields might be changed automatically, such as modifiedDate. This method supports patch semantics. This method supports an /upload URI and accepts uploaded media with the following characteristics: - Maximum file size: 5,120 GB - Accepted Media MIME types: */* (Specify a valid MIME type, rather than the literal */* value.
  • watch — Subscribes to changes to a file. For more information, see Notifications for resource changes.

operations

  • get — Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.

permissions

  • create — Creates a permission for a file or shared drive. For more information, see Share files, folders, and drives. Warning: Concurrent permissions operations on the same file aren't supported; only the last update is applied.
  • delete — Deletes a permission. For more information, see Share files, folders, and drives. Warning: Concurrent permissions operations on the same file aren't supported; only the last update is applied.
  • get — Gets a permission by ID. For more information, see Share files, folders, and drives.
  • list — Lists a file's or shared drive's permissions. For more information, see Share files, folders, and drives.
  • update — Updates a permission with patch semantics. For more information, see Share files, folders, and drives. Warning: Concurrent permissions operations on the same file aren't supported; only the last update is applied.

replies

revisions

  • delete — Permanently deletes a file version. You can only delete revisions for files with binary content in Google Drive, like images or videos. Revisions for other files, like Google Docs or Sheets, and the last remaining file version can't be deleted. For more information, see Manage file revisions.
  • get — Gets a revision's metadata or content by ID. For more information, see Manage file revisions.
  • list — Lists a file's revisions. For more information, see Manage file revisions. Important: The list of revisions returned by this method might be incomplete for files with a large revision history, including frequently edited Google Docs, Sheets, and Slides. Older revisions might be omitted from the response, meaning the first revision returned may not be the oldest existing revision.
  • update — Updates a revision with patch semantics. For more information, see Manage file revisions.

teamdrives

  • create — Deprecated: Use drives.create instead.
  • get — Deprecated: Use drives.get instead.
  • list — Deprecated: Use drives.list instead.
  • update — Deprecated: Use drives.update instead.

Discovering Commands

Before calling any API method, inspect it:

# Browse resources and methods
gws drive --help

# Inspect a method's required params, types, and defaults
gws schema drive.<resource>.<method>

Use gws schema output to build your --params and --json flags.

Related skills

Forks & variants (1)

Gws Drive has 1 known copy in the catalog totaling 6 installs. They canonicalize to this original listing.

How it compares

Use gws-drive for quick terminal Drive ops instead of writing custom Google Drive SDK integration code.

FAQ

What CLI does gws-drive use?

gws-drive uses the Google Workspace `gws` CLI with `gws drive <resource> <method>` commands for Drive API v3 operations including files, folders, and shared drives.

What must be configured before gws-drive works?

gws-drive requires the gws-shared SKILL.md for authentication, global flags, and security rules, plus the gws binary installed; run `gws generate-skills` if shared skills are missing.

Is Gws Drive safe to install?

skills.sh reports 2 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.