---
name: gog-slides
description: "Google Slides via the gog CLI: read slide text/notes, export and thumbnail decks, build decks from markdown or a template, add/delete/replace slides, and insert or replace text and images. Use for Slides automation with JSON output."
---

# gog slides

Slides reads and writes with parseable output. Pick the account on every call
with `--account <email>` (or set `GOG_ACCOUNT`).

## Reads

```bash
gog --account you@example.com slides info <presentationId> --json --wrap-untrusted
gog --account you@example.com slides list-slides <presentationId> --json
gog --account you@example.com slides read-slide <presentationId> <slideId> --json --wrap-untrusted
gog --account you@example.com slides export <presentationId> --format pdf -o out.pdf
gog --account you@example.com slides thumbnail <presentationId> <slideId> -o slide.png
```

## Writes

```bash
gog --account you@example.com slides create --title "Temp - deck" --json
gog --account you@example.com slides create-from-markdown --title "Deck" --file deck.md --json
gog --account you@example.com slides create-from-template <templateId> --json
gog --account you@example.com slides add-slide <presentationId> --layout TITLE_AND_BODY
gog --account you@example.com slides insert-text <presentationId> <slideId> --text "..."
gog --account you@example.com slides replace-text <presentationId> --find "{{name}}" --replace "Acme"
gog --account you@example.com slides delete-slide <presentationId> <slideId> --force
```

## Safety

- `delete-slide`/`replace-slide` change the deck irreversibly — confirm ids;
  `delete-slide` needs `--force`.
- Name test decks with a clear temp prefix and trash them after.
- stdout is data (`--json`/`--plain`); hints go to stderr. `--no-input` in automation.

## Discovery

`gog slides --help` · `gog slides <cmd> --help` · `gog schema slides <cmd> --json`
Reference: <https://gogcli.sh/>
