Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .changeset/add-recipient-flags.md

This file was deleted.

6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @googleworkspace/cli

## 0.11.0

### Minor Changes

- 4d4b09f: Add `--cc` and `--bcc` flags to `+send`, `--to` and `--bcc` to `+reply` and `+reply-all`, and `--bcc` to `+forward`.

## 0.10.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

[package]
name = "gws"
version = "0.10.0"
version = "0.11.0"
edition = "2021"
description = "Google Workspace CLI — dynamic command surface from Discovery Service"
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@googleworkspace/cli",
"version": "0.10.0",
"version": "0.11.0",
"private": true,
"description": "Google Workspace CLI — dynamic command surface from Discovery Service",
"license": "Apache-2.0",
Expand Down
22 changes: 9 additions & 13 deletions skills/gws-gmail-forward/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@ gws gmail +forward --message-id <ID> --to <EMAILS>

## Flags

| Flag | Required | Default | Description |
| -------------- | -------- | ------- | --------------------------------------------------------------- |
| `--message-id` | | | Gmail message ID to forward |
| `--to` | | | Recipient email address(es), comma-separated |
| `--from` | | | Sender address (for send-as/alias; omit to use account default) |
| `--cc` | | | CC email address(es), comma-separated |
| `--bcc` | | | BCC email address(es), comma-separated |
| `--body` | | | Optional note to include above the forwarded message |
| `--dry-run` | | | Show the request that would be sent without executing it |
| Flag | Required | Default | Description |
|------|----------|---------|-------------|
| `--message-id` ||| Gmail message ID to forward |
| `--to` ||| Recipient email address(es), comma-separated |
| `--from` ||| Sender address (for send-as/alias; omit to use account default) |
| `--cc` ||| CC email address(es), comma-separated |
| `--bcc` ||| BCC email address(es), comma-separated |
| `--body` ||| Optional note to include above the forwarded message |
| `--dry-run` ||| Show the request that would be sent without executing it |

## Examples

Expand All @@ -46,10 +46,6 @@ gws gmail +forward --message-id 18f1a2b3c4d --to dave@example.com --bcc secret@e
## Tips

- Includes the original message with sender, date, subject, and recipients.
- Sends the forward as a new message rather than forcing it into the original thread.

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

## See Also

Expand Down
23 changes: 10 additions & 13 deletions skills/gws-gmail-reply-all/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,16 @@ gws gmail +reply-all --message-id <ID> --body <TEXT>

## Flags

| Flag | Required | Default | Description |
| -------------- | -------- | ------- | ------------------------------------------------------------------- |
| `--message-id` | | | Gmail message ID to reply to |
| `--body` | | | Reply body (plain text) |
| `--from` | | | Sender address (for send-as/alias; omit to use account default) |
| `--to` | | | Additional To email address(es), comma-separated |
| `--cc` | | | Additional CC email address(es), comma-separated |
| `--bcc` | | | BCC email address(es), comma-separated |
| `--remove` | | | Exclude recipients from the outgoing reply, comma-separated emails |
| `--dry-run` | | | Show the request that would be sent without executing it |
| Flag | Required | Default | Description |
|------|----------|---------|-------------|
| `--message-id` ||| Gmail message ID to reply to |
| `--body` ||| Reply body (plain text) |
| `--from` ||| Sender address (for send-as/alias; omit to use account default) |
| `--to` ||| Additional To email address(es), comma-separated |
| `--cc` ||| Additional CC email address(es), comma-separated |
| `--bcc` ||| BCC email address(es), comma-separated |
| `--remove` ||| Exclude recipients from the outgoing reply (comma-separated emails) |
| `--dry-run` ||| Show the request that would be sent without executing it |

## Examples

Expand All @@ -54,9 +54,6 @@ gws gmail +reply-all --message-id 18f1a2b3c4d --body 'Reply' --bcc secret@exampl
- Use --remove to exclude recipients from the outgoing reply, including the sender or Reply-To target.
- The command fails if no To recipient remains after exclusions and --to additions.

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

- [gws-shared](../gws-shared/SKILL.md) — Global flags and auth
Expand Down
23 changes: 10 additions & 13 deletions skills/gws-gmail-reply/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@ gws gmail +reply --message-id <ID> --body <TEXT>

## Flags

| Flag | Required | Default | Description |
| -------------- | -------- | ------- | --------------------------------------------------------------- |
| `--message-id` | | | Gmail message ID to reply to |
| `--body` | | | Reply body (plain text) |
| `--from` | | | Sender address (for send-as/alias; omit to use account default) |
| `--to` | | | Additional To email address(es), comma-separated |
| `--cc` | | | Additional CC email address(es), comma-separated |
| `--bcc` | | | BCC email address(es), comma-separated |
| `--dry-run` | | | Show the request that would be sent without executing it |
| Flag | Required | Default | Description |
|------|----------|---------|-------------|
| `--message-id` ||| Gmail message ID to reply to |
| `--body` ||| Reply body (plain text) |
| `--from` ||| Sender address (for send-as/alias; omit to use account default) |
| `--to` ||| Additional To email address(es), comma-separated |
| `--cc` ||| Additional CC email address(es), comma-separated |
| `--bcc` ||| BCC email address(es), comma-separated |
| `--dry-run` ||| Show the request that would be sent without executing it |

## Examples

Expand All @@ -47,12 +47,9 @@ gws gmail +reply --message-id 18f1a2b3c4d --body 'Reply' --bcc secret@example.co

- Automatically sets In-Reply-To, References, and threadId headers.
- Quotes the original message in the reply body.
- Use --to to add extra recipients to the To field.
- --to adds extra recipients to the To field.
- For reply-all, use +reply-all 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
Expand Down
20 changes: 10 additions & 10 deletions skills/gws-gmail-send/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,19 @@ Send an email
## Usage

```bash
gws gmail +send --to <EMAIL> --subject <SUBJECT> --body <TEXT>
gws gmail +send --to <EMAILS> --subject <SUBJECT> --body <TEXT>
```

## Flags

| Flag | Required | Default | Description |
| ----------- | -------- | ------- | -------------------------------------------------------- |
| `--to` | | | Recipient email address(es), comma-separated |
| `--subject` | | | Email subject |
| `--body` | | | Email body (plain text) |
| `--cc` | | | CC email address(es), comma-separated |
| `--bcc` | | | BCC email address(es), comma-separated |
| `--dry-run` | | | Show the request that would be sent without executing it |
| Flag | Required | Default | Description |
|------|----------|---------|-------------|
| `--to` ||| Recipient email address(es), comma-separated |
| `--subject` ||| Email subject |
| `--body` ||| Email body (plain text) |
| `--cc` ||| CC email address(es), comma-separated |
| `--bcc` ||| BCC email address(es), comma-separated |
| `--dry-run` ||| Show the request that would be sent without executing it |

## Examples

Expand All @@ -44,7 +44,7 @@ gws gmail +send --to alice@example.com --subject 'Hello' --body 'Hi!' --bcc secr
## Tips

- Handles RFC 2822 formatting and base64 encoding automatically.
- For HTML bodies or attachments, use the raw API instead: `gws gmail users messages send --json '...'`
- For HTML bodies or attachments, use the raw API instead: gws gmail users messages send --json '...'

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