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: docs/commands.generated.md
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -241,6 +241,10 @@ Generated from `gog schema --json`.
241
241
-[`gog docs (doc) find-range <docId> <text> [flags]`](commands/gog-docs-find-range.md) - Find text and print Docs API UTF-16 index ranges
242
242
-[`gog docs (doc) find-replace <docId> <find> [<replace>] [flags]`](commands/gog-docs-find-replace.md) - Find and replace text. Supports plain text or markdown with images; use --first for a single occurrence.
243
243
-[`gog docs (doc) format <docId> [flags]`](commands/gog-docs-format.md) - Apply text or paragraph formatting to a Google Doc
244
+
-[`gog docs (doc) headings <command>`](commands/gog-docs-headings.md) - List document headings
245
+
-[`gog docs (doc) headings list (ls) <docId> [flags]`](commands/gog-docs-headings-list.md) - List heading paragraphs
246
+
-[`gog docs (doc) images <command>`](commands/gog-docs-images.md) - List document images
247
+
-[`gog docs (doc) images list (ls) <docId> [flags]`](commands/gog-docs-images-list.md) - List inline and positioned images
244
248
-[`gog docs (doc) info (get,show) <docId>`](commands/gog-docs-info.md) - Get Google Doc metadata
245
249
-[`gog docs (doc) insert <docId> [<content>] [flags]`](commands/gog-docs-insert.md) - Insert text at a specific position
246
250
-[`gog docs (doc) insert-date-chip --date=STRING <docId> [flags]`](commands/gog-docs-insert-date-chip.md) - Insert a native date smart chip
@@ -251,11 +255,15 @@ Generated from `gog schema --json`.
251
255
-[`gog docs (doc) insert-table --rows=INT --cols=INT <docId> [flags]`](commands/gog-docs-insert-table.md) - Insert a native table at a specific position (or end-of-doc with --at-end), optionally populated via --values-json
252
256
-[`gog docs (doc) list-tabs <docId>`](commands/gog-docs-list-tabs.md) - List all tabs in a Google Doc
253
257
-[`gog docs (doc) page-layout (set-page-layout,page-setup) <docId> [flags]`](commands/gog-docs-page-layout.md) - Set page layout (pageless|pages) on an existing Google Doc
258
+
-[`gog docs (doc) paragraphs <command>`](commands/gog-docs-paragraphs.md) - List document paragraphs
259
+
-[`gog docs (doc) paragraphs list (ls) <docId> [flags]`](commands/gog-docs-paragraphs-list.md) - List paragraphs
254
260
-[`gog docs (doc) raw <docId> [flags]`](commands/gog-docs-raw.md) - Dump raw Google Docs API response as JSON (Documents.Get; lossless; for scripting and LLM consumption)
255
261
-[`gog docs (doc) rename-tab <docId> [flags]`](commands/gog-docs-rename-tab.md) - Rename a tab in a Google Doc
Copy file name to clipboardExpand all lines: docs/commands/README.md
+9-1Lines changed: 9 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: 589.
5
+
Generated pages: 597.
6
6
7
7
## Top-level Commands
8
8
@@ -293,6 +293,10 @@ Generated pages: 589.
293
293
-[gog docs find-range](gog-docs-find-range.md) - Find text and print Docs API UTF-16 index ranges
294
294
-[gog docs find-replace](gog-docs-find-replace.md) - Find and replace text. Supports plain text or markdown with images; use --first for a single occurrence.
295
295
-[gog docs format](gog-docs-format.md) - Apply text or paragraph formatting to a Google Doc
296
+
-[gog docs headings](gog-docs-headings.md) - List document headings
297
+
-[gog docs headings list](gog-docs-headings-list.md) - List heading paragraphs
298
+
-[gog docs images](gog-docs-images.md) - List document images
299
+
-[gog docs images list](gog-docs-images-list.md) - List inline and positioned images
296
300
-[gog docs info](gog-docs-info.md) - Get Google Doc metadata
297
301
-[gog docs insert](gog-docs-insert.md) - Insert text at a specific position
298
302
-[gog docs insert-date-chip](gog-docs-insert-date-chip.md) - Insert a native date smart chip
@@ -303,11 +307,15 @@ Generated pages: 589.
303
307
-[gog docs insert-table](gog-docs-insert-table.md) - Insert a native table at a specific position (or end-of-doc with --at-end), optionally populated via --values-json
304
308
-[gog docs list-tabs](gog-docs-list-tabs.md) - List all tabs in a Google Doc
305
309
-[gog docs page-layout](gog-docs-page-layout.md) - Set page layout (pageless|pages) on an existing Google Doc
310
+
-[gog docs paragraphs](gog-docs-paragraphs.md) - List document paragraphs
311
+
-[gog docs paragraphs list](gog-docs-paragraphs-list.md) - List paragraphs
306
312
-[gog docs raw](gog-docs-raw.md) - Dump raw Google Docs API response as JSON (Documents.Get; lossless; for scripting and LLM consumption)
307
313
-[gog docs rename-tab](gog-docs-rename-tab.md) - Rename a tab in a Google Doc
> Generated from `gog schema --json`. Do not edit this page by hand; run `make docs-commands`.
4
+
5
+
List heading paragraphs
6
+
7
+
## Usage
8
+
9
+
```bash
10
+
gog docs (doc) headings list (ls) <docId> [flags]
11
+
```
12
+
13
+
## Parent
14
+
15
+
-[gog docs headings](gog-docs-headings.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/drivelabels/docs/slides/contacts/tasks/people/sheets/forms/sites/appscript/analytics/searchconsole/youtube/photos) |
|`-h`<br>`--help`|`kong.helpFlag`|| Show context-sensitive help. |
32
+
|`--home`|`string`|| Override gogcli config/data/state/cache root (equivalent to GOG_HOME) |
33
+
|`-j`<br>`--json`<br>`--machine`|`bool`| false | Output JSON to stdout (best for scripting) |
34
+
|`--level`|`int`|| Only return this heading level (1-6) |
35
+
|`--no-input`<br>`--non-interactive`<br>`--noninteractive`|`bool`|| Never prompt; fail instead (useful for CI) |
36
+
|`-p`<br>`--plain`<br>`--tsv`|`bool`| false | Output stable, parseable text to stdout (TSV; no colors) |
37
+
|`--results-only`|`bool`|| In JSON mode, emit only the primary result (drops envelope fields like nextPageToken) |
38
+
|`--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. |
39
+
|`--tab`|`string`|| Tab title or ID (omit for default) |
> Generated from `gog schema --json`. Do not edit this page by hand; run `make docs-commands`.
4
+
5
+
List document headings
6
+
7
+
## Usage
8
+
9
+
```bash
10
+
gog docs (doc) headings <command>
11
+
```
12
+
13
+
## Parent
14
+
15
+
-[gog docs](gog-docs.md)
16
+
17
+
## Subcommands
18
+
19
+
-[gog docs headings list](gog-docs-headings-list.md) - List heading paragraphs
20
+
21
+
## Flags
22
+
23
+
| Flag | Type | Default | Help |
24
+
| --- | --- | --- | --- |
25
+
|`--access-token`|`string`|| Use provided access token directly (bypasses stored refresh tokens; token expires in ~1h) |
26
+
|`-a`<br>`--account`<br>`--acct`|`string`|| Account email for API commands (gmail/calendar/chat/classroom/drive/drivelabels/docs/slides/contacts/tasks/people/sheets/forms/sites/appscript/analytics/searchconsole/youtube/photos) |
|`-h`<br>`--help`|`kong.helpFlag`|| Show context-sensitive help. |
36
+
|`--home`|`string`|| Override gogcli config/data/state/cache root (equivalent to GOG_HOME) |
37
+
|`-j`<br>`--json`<br>`--machine`|`bool`| false | Output JSON to stdout (best for scripting) |
38
+
|`--no-input`<br>`--non-interactive`<br>`--noninteractive`|`bool`|| Never prompt; fail instead (useful for CI) |
39
+
|`-p`<br>`--plain`<br>`--tsv`|`bool`| false | Output stable, parseable text to stdout (TSV; no colors) |
40
+
|`--results-only`|`bool`|| In JSON mode, emit only the primary result (drops envelope fields like nextPageToken) |
41
+
|`--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. |
> Generated from `gog schema --json`. Do not edit this page by hand; run `make docs-commands`.
4
+
5
+
List inline and positioned images
6
+
7
+
## Usage
8
+
9
+
```bash
10
+
gog docs (doc) images list (ls) <docId> [flags]
11
+
```
12
+
13
+
## Parent
14
+
15
+
-[gog docs images](gog-docs-images.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/drivelabels/docs/slides/contacts/tasks/people/sheets/forms/sites/appscript/analytics/searchconsole/youtube/photos) |
|`-h`<br>`--help`|`kong.helpFlag`|| Show context-sensitive help. |
32
+
|`--home`|`string`|| Override gogcli config/data/state/cache root (equivalent to GOG_HOME) |
33
+
|`-j`<br>`--json`<br>`--machine`|`bool`| false | Output JSON to stdout (best for scripting) |
34
+
|`--no-input`<br>`--non-interactive`<br>`--noninteractive`|`bool`|| Never prompt; fail instead (useful for CI) |
35
+
|`-p`<br>`--plain`<br>`--tsv`|`bool`| false | Output stable, parseable text to stdout (TSV; no colors) |
36
+
|`--results-only`|`bool`|| In JSON mode, emit only the primary result (drops envelope fields like nextPageToken) |
37
+
|`--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. |
38
+
|`--tab`|`string`|| Tab title or ID (omit for default) |
> Generated from `gog schema --json`. Do not edit this page by hand; run `make docs-commands`.
4
+
5
+
List document images
6
+
7
+
## Usage
8
+
9
+
```bash
10
+
gog docs (doc) images <command>
11
+
```
12
+
13
+
## Parent
14
+
15
+
-[gog docs](gog-docs.md)
16
+
17
+
## Subcommands
18
+
19
+
-[gog docs images list](gog-docs-images-list.md) - List inline and positioned images
20
+
21
+
## Flags
22
+
23
+
| Flag | Type | Default | Help |
24
+
| --- | --- | --- | --- |
25
+
|`--access-token`|`string`|| Use provided access token directly (bypasses stored refresh tokens; token expires in ~1h) |
26
+
|`-a`<br>`--account`<br>`--acct`|`string`|| Account email for API commands (gmail/calendar/chat/classroom/drive/drivelabels/docs/slides/contacts/tasks/people/sheets/forms/sites/appscript/analytics/searchconsole/youtube/photos) |
|`-h`<br>`--help`|`kong.helpFlag`|| Show context-sensitive help. |
36
+
|`--home`|`string`|| Override gogcli config/data/state/cache root (equivalent to GOG_HOME) |
37
+
|`-j`<br>`--json`<br>`--machine`|`bool`| false | Output JSON to stdout (best for scripting) |
38
+
|`--no-input`<br>`--non-interactive`<br>`--noninteractive`|`bool`|| Never prompt; fail instead (useful for CI) |
39
+
|`-p`<br>`--plain`<br>`--tsv`|`bool`| false | Output stable, parseable text to stdout (TSV; no colors) |
40
+
|`--results-only`|`bool`|| In JSON mode, emit only the primary result (drops envelope fields like nextPageToken) |
41
+
|`--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