You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,7 @@
8
8
- Raw API dumps: add `docs raw`, `sheets raw`, `slides raw`, `drive raw`, `gmail raw`, `calendar raw`, `people raw`, `contacts raw`, `tasks raw`, and `forms raw` subcommands for lossless Google API JSON output, with `--pretty`, Drive raw redaction defaults, Sheets grid-data warnings, and a raw-output security audit. (#495, #496) — thanks @karbassi.
9
9
- Docs: add `docs format` and plain-text `docs write` formatting flags for fonts, colors, bold/italic/underline/strikethrough, alignment, and line spacing. (#479) — thanks @mmaghsoodnia.
10
10
- Drive: add `--fields` to `drive ls` and `drive get` so callers can pass Drive API field masks for fields beyond the default JSON set. (#495) — thanks @karbassi.
11
+
- Drive: add read-only `drive tree`, `drive du`, and `drive inventory` reports for auditing folder contents and sizes. (#116) — thanks @rohan-patnaik.
11
12
- Sheets: add `sheets table` list/get/create/delete commands for Google Sheets structured tables. (#470) — thanks @Pedrohgv.
12
13
- Agent safety: add baked safety-profile builds for fail-closed agent binaries, with `agent-safe`, `readonly`, and `full` profiles, filtered help/schema output, docs, and build tooling. (#366, #239) — thanks @drewburchfield.
13
14
- Calendar: add `--with-meet` to `calendar update` for adding Google Meet conferencing to existing events. (#538) — thanks @alexisperumal.
-**Chat** - list/find/create spaces, list messages/threads, send messages and DMs, and manage emoji reactions (Workspace-only)
16
-
-**Drive** - list/search/upload/download files, scope search to folders or shared drives, replace uploads in-place, convert uploads (including Markdown to Google Doc), manage permissions/comments, organize folders, and list shared drives
16
+
-**Drive** - list/search/upload/download files, inspect folders with tree/du/inventory reports, scope search to folders or shared drives, replace uploads in-place, convert uploads (including Markdown to Google Doc), manage permissions/comments, organize folders, and list shared drives
17
17
-**Contacts** - search/create/update contacts, including addresses, relations, org/title metadata, custom fields, Workspace directory, and other contacts
18
18
-**Tasks** - manage tasklists and tasks: get/create/add/update/done/undo/delete/clear, plus repeat schedule materialization with RRULE aliases
19
19
-**Sheets** - read/write/update spreadsheets, insert rows/cols, manage tabs, named ranges, and Sheets tables, format/merge/freeze/resize cells, manage conditional formatting and banding, read/write notes, inspect formats, find/replace text, list links, and create/export sheets
@@ -1132,6 +1132,12 @@ gog drive get <fileId> # Get file metadata
Copy file name to clipboardExpand all lines: docs/commands/README.md
+4-1Lines changed: 4 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
Every `gog` command has a generated docs page. The source of truth is the live CLI schema; run `make docs-commands` after changing command names, flags, help text, aliases, or arguments.
4
4
5
-
Generated pages: 466.
5
+
Generated pages: 469.
6
6
7
7
## Top-level Commands
8
8
@@ -288,7 +288,9 @@ Generated pages: 466.
288
288
-[gog drive delete](gog-drive-delete.md) - Move a file to trash (use --permanent to delete forever)
289
289
-[gog drive download](gog-drive-download.md) - Download a file (exports Google Docs formats)
290
290
-[gog drive drives](gog-drive-drives.md) - List shared drives (Team Drives)
> Generated from `gog schema --json`. Do not edit this page by hand; run `make docs-commands`.
4
+
5
+
Summarize Drive folder sizes
6
+
7
+
## Usage
8
+
9
+
```bash
10
+
gog drive (drv) du [flags]
11
+
```
12
+
13
+
## Parent
14
+
15
+
-[gog drive](gog-drive.md)
16
+
17
+
## Flags
18
+
19
+
| Flag | Type | Default | Help |
20
+
| --- | --- | --- | --- |
21
+
|`--access-token`|`string`|| Use provided access token directly (bypasses stored refresh tokens; token expires in ~1h) |
22
+
|`-a`<br>`--account`<br>`--acct`|`string`|| Account email for API commands (gmail/calendar/chat/classroom/drive/docs/slides/contacts/tasks/people/sheets/forms/appscript/ads) |
23
+
|`--all-drives`|`bool`| true | Include shared drives (default: true; use --no-all-drives for My Drive only) |
|`-h`<br>`--help`|`kong.helpFlag`|| Show context-sensitive help. |
33
+
|`-j`<br>`--json`<br>`--machine`|`bool`| false | Output JSON to stdout (best for scripting) |
34
+
|`--max`|`int`| 50 | Max folders to return (0 = unlimited) |
35
+
|`--no-input`<br>`--non-interactive`<br>`--noninteractive`|`bool`|| Never prompt; fail instead (useful for CI) |
36
+
|`--order`|`string`| desc | Sort order |
37
+
|`--parent`|`string`|| Folder ID to start from (default: root) |
38
+
|`-p`<br>`--plain`<br>`--tsv`|`bool`| false | Output stable, parseable text to stdout (TSV; no colors) |
39
+
|`--results-only`|`bool`|| In JSON mode, emit only the primary result (drops envelope fields like nextPageToken) |
40
+
|`--select`<br>`--pick`<br>`--project`|`string`|| In JSON mode, select comma-separated fields (best-effort; supports dot paths). Desire path: use --fields for most commands. |
41
+
|`--sort`|`string`| size | Sort by size\|path\|files |
> Generated from `gog schema --json`. Do not edit this page by hand; run `make docs-commands`.
4
+
5
+
Export a read-only Drive inventory
6
+
7
+
## Usage
8
+
9
+
```bash
10
+
gog drive (drv) inventory [flags]
11
+
```
12
+
13
+
## Parent
14
+
15
+
-[gog drive](gog-drive.md)
16
+
17
+
## Flags
18
+
19
+
| Flag | Type | Default | Help |
20
+
| --- | --- | --- | --- |
21
+
|`--access-token`|`string`|| Use provided access token directly (bypasses stored refresh tokens; token expires in ~1h) |
22
+
|`-a`<br>`--account`<br>`--acct`|`string`|| Account email for API commands (gmail/calendar/chat/classroom/drive/docs/slides/contacts/tasks/people/sheets/forms/appscript/ads) |
23
+
|`--all-drives`|`bool`| true | Include shared drives (default: true; use --no-all-drives for My Drive only) |
|`-h`<br>`--help`|`kong.helpFlag`|| Show context-sensitive help. |
33
+
|`-j`<br>`--json`<br>`--machine`|`bool`| false | Output JSON to stdout (best for scripting) |
34
+
|`--max`|`int`| 500 | Max items to return (0 = unlimited) |
35
+
|`--no-input`<br>`--non-interactive`<br>`--noninteractive`|`bool`|| Never prompt; fail instead (useful for CI) |
36
+
|`--order`|`string`| asc | Sort order |
37
+
|`--parent`|`string`|| Folder ID to start from (default: root) |
38
+
|`-p`<br>`--plain`<br>`--tsv`|`bool`| false | Output stable, parseable text to stdout (TSV; no colors) |
39
+
|`--results-only`|`bool`|| In JSON mode, emit only the primary result (drops envelope fields like nextPageToken) |
40
+
|`--select`<br>`--pick`<br>`--project`|`string`|| In JSON mode, select comma-separated fields (best-effort; supports dot paths). Desire path: use --fields for most commands. |
41
+
|`--sort`|`string`| path | Sort by path\|size\|modified |
> Generated from `gog schema --json`. Do not edit this page by hand; run `make docs-commands`.
4
+
5
+
Print a read-only folder tree
6
+
7
+
## Usage
8
+
9
+
```bash
10
+
gog drive (drv) tree [flags]
11
+
```
12
+
13
+
## Parent
14
+
15
+
-[gog drive](gog-drive.md)
16
+
17
+
## Flags
18
+
19
+
| Flag | Type | Default | Help |
20
+
| --- | --- | --- | --- |
21
+
|`--access-token`|`string`|| Use provided access token directly (bypasses stored refresh tokens; token expires in ~1h) |
22
+
|`-a`<br>`--account`<br>`--acct`|`string`|| Account email for API commands (gmail/calendar/chat/classroom/drive/docs/slides/contacts/tasks/people/sheets/forms/appscript/ads) |
23
+
|`--all-drives`|`bool`| true | Include shared drives (default: true; use --no-all-drives for My Drive only) |
|`-h`<br>`--help`|`kong.helpFlag`|| Show context-sensitive help. |
33
+
|`-j`<br>`--json`<br>`--machine`|`bool`| false | Output JSON to stdout (best for scripting) |
34
+
|`--max`|`int`| 0 | Max items to return (0 = unlimited) |
35
+
|`--no-input`<br>`--non-interactive`<br>`--noninteractive`|`bool`|| Never prompt; fail instead (useful for CI) |
36
+
|`--parent`|`string`|| Folder ID to start from (default: root) |
37
+
|`-p`<br>`--plain`<br>`--tsv`|`bool`| false | Output stable, parseable text to stdout (TSV; no colors) |
38
+
|`--results-only`|`bool`|| In JSON mode, emit only the primary result (drops envelope fields like nextPageToken) |
39
+
|`--select`<br>`--pick`<br>`--project`|`string`|| In JSON mode, select comma-separated fields (best-effort; supports dot paths). Desire path: use --fields for most commands. |
0 commit comments