---
name: Append Text to Google Docs
slug: append-text-to-google-docs
category: Automation
description: Append Text to Google Docs appends plain text to the end of a Google Docs document. Use it when you need to add content to an existing document programmatically.
github: "https://github.com/googleworkspace/cli/tree/main/skills/gws-docs-write"
language: Rust
stars: 30380
forks: 1779
install: "npx degit https://github.com/googleworkspace/cli/tree/main/skills/gws-docs-write ~/.claude/skills/gws-docs-write"
installs_to: ~/.claude/skills/gws-docs-write
source_path: skills/gws-docs-write/SKILL.md
collection_size: 25
category_size: 1523
collection_url: "https://dirskills.com/collections/googleworkspace/cli"
added: 2026-08-14T07:11:35.690Z
last_synced: 2026-08-14T07:11:35.690Z
canonical_url: "https://dirskills.com/skills/append-text-to-google-docs"
---

# Append Text to Google Docs

Append Text to Google Docs appends plain text to the end of a Google Docs document. Use it when you need to add content to an existing document programmatically.

**Install:**

```bash
npx degit https://github.com/googleworkspace/cli/tree/main/skills/gws-docs-write ~/.claude/skills/gws-docs-write
```

## README

# docs +write

> **PREREQUISITE:** Read `../gws-shared/SKILL.md` for auth, global flags, and security rules. If missing, run `gws generate-skills` to create it.

Append text to a document

## Usage

```bash
gws docs +write --document <ID> --text <TEXT>
```

## Flags

| Flag | Required | Default | Description |
|------|----------|---------|-------------|
| `--document` | ✓ | — | Document ID |
| `--text` | ✓ | — | Text to append (plain text) |

## Examples

```bash
gws docs +write --document DOC_ID --text 'Hello, world!'
```

## Tips

- Text is inserted at the end of the document body.
- For rich formatting, use the raw batchUpdate API instead.

> [!CAUTION]
> This is a **write** command — confirm with the user before executing.

## See Also

- [gws-shared](../gws-shared/SKILL.md) — Global flags and auth
- [gws-docs](../gws-docs/SKILL.md) — All read and write google docs commands
