@zapier/zapier-sdk-cli 0.86.7 → 0.87.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +4 -4
- package/CHANGELOG.md +21 -0
- package/README.md +40 -3
- package/dist/cli.cjs +801 -391
- package/dist/cli.mjs +805 -395
- package/dist/experimental.cjs +798 -386
- package/dist/experimental.d.mts +1 -1
- package/dist/experimental.d.ts +1 -1
- package/dist/experimental.mjs +801 -389
- package/dist/{extensions-OFaHmWVC.d.mts → extensions-CrfC6xjA.d.mts} +23 -2
- package/dist/{extensions-OFaHmWVC.d.ts → extensions-CrfC6xjA.d.ts} +23 -2
- package/dist/index.cjs +798 -388
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +802 -392
- package/package.json +4 -4
package/AGENTS.md
CHANGED
|
@@ -94,7 +94,7 @@ Some apps have fields that depend on your connection (e.g., "Select a Slack chan
|
|
|
94
94
|
|
|
95
95
|
```bash
|
|
96
96
|
# Provide connection IDs for dynamic field resolution
|
|
97
|
-
npx zapier-sdk add slack --
|
|
97
|
+
npx zapier-sdk add slack --connections 123456
|
|
98
98
|
```
|
|
99
99
|
|
|
100
100
|
### When to Regenerate
|
|
@@ -157,7 +157,7 @@ Execute Zapier actions directly from the command line.
|
|
|
157
157
|
### Basic Usage
|
|
158
158
|
|
|
159
159
|
```bash
|
|
160
|
-
npx zapier-sdk run-action slack read channels --connection
|
|
160
|
+
npx zapier-sdk run-action slack read channels --connection 123456
|
|
161
161
|
```
|
|
162
162
|
|
|
163
163
|
### With Inputs
|
|
@@ -165,7 +165,7 @@ npx zapier-sdk run-action slack read channels --connection-id 123456
|
|
|
165
165
|
```bash
|
|
166
166
|
# Pass inputs as JSON
|
|
167
167
|
npx zapier-sdk run-action slack write channel_message \
|
|
168
|
-
--connection
|
|
168
|
+
--connection 123456 \
|
|
169
169
|
--inputs '{"channel": "#general", "text": "Hello from CLI!"}'
|
|
170
170
|
```
|
|
171
171
|
|
|
@@ -183,7 +183,7 @@ npx zapier-sdk run-action
|
|
|
183
183
|
```bash
|
|
184
184
|
# Get raw JSON output for scripting
|
|
185
185
|
npx zapier-sdk run-action slack read channels \
|
|
186
|
-
--connection
|
|
186
|
+
--connection 123456 \
|
|
187
187
|
--json
|
|
188
188
|
```
|
|
189
189
|
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# @zapier/zapier-sdk-cli
|
|
2
2
|
|
|
3
|
+
## 0.87.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [db3e28a]
|
|
8
|
+
- @zapier/zapier-sdk@0.116.0
|
|
9
|
+
- @zapier/zapier-sdk-mcp@0.27.9
|
|
10
|
+
|
|
11
|
+
## 0.87.0
|
|
12
|
+
|
|
13
|
+
### Minor Changes
|
|
14
|
+
|
|
15
|
+
- 794c383: Added `zapier-sdk setup --agent` to print the terminal wizard's questions and exact commands for one setup step. The agent asks the user, then runs `setup --step <name> --non-interactive` after approval. Use `--answer` for selections or text input. Printed commands carry `--flow` for login/signup and `--language` for the project language between steps. The guidance tells agents to show the active connections before continuing. Each successful operation prints the next step's question and execution commands directly, without another `--agent` call. Completion gives the current agent instructions to suggest ideas based on connected apps instead of asking which agent to open. Setup does not save progress or answers. Running `zapier-sdk setup` without a terminal now points to `--agent` in its error.
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- 5bb041a: _This release contains no user-facing changes._
|
|
20
|
+
- Updated dependencies [5bb041a]
|
|
21
|
+
- @zapier/zapier-sdk@0.115.2
|
|
22
|
+
- @zapier/zapier-sdk-mcp@0.27.8
|
|
23
|
+
|
|
3
24
|
## 0.86.7
|
|
4
25
|
|
|
5
26
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -163,6 +163,32 @@ Run the guided setup to add undeclared Zapier SDK dependencies, authenticate, an
|
|
|
163
163
|
npx @zapier/zapier-sdk-cli setup
|
|
164
164
|
```
|
|
165
165
|
|
|
166
|
+
For an AI agent or another non-interactive caller, start stepwise setup:
|
|
167
|
+
|
|
168
|
+
```bash
|
|
169
|
+
npx @zapier/zapier-sdk-cli setup --agent
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
Ask the printed wizard question verbatim. After approval, run the exact
|
|
173
|
+
`setup --step <name> --non-interactive` command. Use `--answer` for selections or
|
|
174
|
+
text input. On success, follow the next step's guidance printed by the command;
|
|
175
|
+
no extra `--agent` call is needed.
|
|
176
|
+
The agent owns approval and progress; setup saves neither.
|
|
177
|
+
On completion, the current agent receives instructions to suggest ideas from
|
|
178
|
+
connected apps instead of being asked which agent to open.
|
|
179
|
+
|
|
180
|
+
Stay in the stated directory. Export shared SDK settings so later commands and
|
|
181
|
+
generated scripts inherit them. Global CLI flags apply only to their invocation.
|
|
182
|
+
Setup uses normal SDK credential and pending OAuth storage; a pending OAuth flow
|
|
183
|
+
started by setup records that saved accounts must be kept. Local authorization
|
|
184
|
+
finishes in the browser. Headless authorization asks the user to paste the final
|
|
185
|
+
callback URL; pass it only to the printed command and do not save it.
|
|
186
|
+
Never repeat a command whose outcome is unknown, especially a Slack send.
|
|
187
|
+
|
|
188
|
+
Printed commands pin the CLI version and use POSIX shell syntax. Agent mode uses
|
|
189
|
+
plain text, not `--json`, and never reads terminal input. Ordinary `setup`
|
|
190
|
+
requires a terminal and points other callers to `--agent`.
|
|
191
|
+
|
|
166
192
|
If you already have a project and want to add the CLI as a dependency:
|
|
167
193
|
|
|
168
194
|
```bash
|
|
@@ -199,7 +225,7 @@ npx zapier-sdk list-connections gmail --owner me
|
|
|
199
225
|
npx zapier-sdk find-first-connection gmail --owner me
|
|
200
226
|
|
|
201
227
|
# Make any API request to an app using your connection.
|
|
202
|
-
npx zapier-sdk
|
|
228
|
+
npx zapier-sdk curl "https://gmail.googleapis.com/gmail/v1/users/me/labels" --connection 123
|
|
203
229
|
```
|
|
204
230
|
|
|
205
231
|
## Global Options
|
|
@@ -2101,12 +2127,23 @@ npx zapier-sdk mcp [--port]
|
|
|
2101
2127
|
|
|
2102
2128
|
#### `setup`
|
|
2103
2129
|
|
|
2104
|
-
Set up the Zapier SDK in an existing or new project
|
|
2130
|
+
Set up the Zapier SDK in an existing or new project. Runs an interactive terminal wizard; AI agents should use --agent instead.
|
|
2131
|
+
|
|
2132
|
+
**Options:**
|
|
2133
|
+
|
|
2134
|
+
| Option | Type | Required | Default | Possible Values | Description |
|
|
2135
|
+
| ------------------- | --------- | -------- | ------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- |
|
|
2136
|
+
| `--agent` | `boolean` | ❌ | — | — | For AI agents and callers without a terminal: print the next setup question and the exact command to run for each answer. |
|
|
2137
|
+
| `--step` | `string` | ❌ | — | `directory`, `project`, `install`, `sdk-update`, `cli-update`, `skill`, `account`, `account-flow`, `account-environment`, `authorize`, `confirm-account`, `connections`, `slack`, `slack-overwrite`, `slack-existing`, `slack-retry`, `handoff` | Setup operation to inspect or execute. |
|
|
2138
|
+
| `--non-interactive` | `boolean` | ❌ | — | — | Execute the named setup step without terminal prompts. |
|
|
2139
|
+
| `--answer` | `string` | ❌ | — | — | User selection or input for a non-interactive setup step. Omitted confirmations use the terminal wizard's default. |
|
|
2140
|
+
| `--flow` | `string` | ❌ | — | `login`, `signup` | Account flow selected for the environment and OAuth callback steps. |
|
|
2141
|
+
| `--language` | `string` | ❌ | — | `javascript`, `typescript` | Project language for dependency installation and the Slack demo. |
|
|
2105
2142
|
|
|
2106
2143
|
**Usage:**
|
|
2107
2144
|
|
|
2108
2145
|
```bash
|
|
2109
|
-
npx zapier-sdk setup
|
|
2146
|
+
npx zapier-sdk setup [--agent] [--step] [--non-interactive] [--answer] [--flow] [--language]
|
|
2110
2147
|
```
|
|
2111
2148
|
|
|
2112
2149
|
### Virtual File System (Experimental)
|