Socket
Book a DemoInstallSign in
Socket

@zapier/zapier-sdk-cli

Package Overview
Dependencies
Maintainers
327
Versions
72
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zapier/zapier-sdk-cli

Command line interface for Zapier SDK

latest
npmnpm
Version
0.16.6
Version published
Maintainers
327
Created
Source

@zapier/zapier-sdk-cli

Table of Contents

Installation

npm install -D @zapier/zapier-sdk-cli

Quick Start

# See all available commands
npx zapier-sdk --help

# Login to Zapier
npx zapier-sdk login

# List all available apps
npx zapier-sdk list-apps

# Generate TypeScript types for an app
npx zapier-sdk add slack --types-output ./types/slack.ts

Global Options

These options are available for all commands:

OptionShortDescription
--version-vDisplay version number
--help-hDisplay help for command
--debugEnable debug logging
--jsonOutput raw JSON instead of formatted results

Available Commands

The CLI automatically generates commands from the SDK registry. All SDK functions are available as CLI commands using kebab-case naming.

Accounts

get-profile

Get current user's profile information

Usage:

npx zapier-sdk get-profile

login

Log in to Zapier to access your account

Options:

OptionTypeRequiredDefaultPossible ValuesDescription
--timeoutstringLogin timeout in seconds (default: 300)

Usage:

npx zapier-sdk login [--timeout]

logout

Log out of your Zapier account

Usage:

npx zapier-sdk logout

Actions

get-action

Get detailed information about a specific action

Options:

OptionTypeRequiredDefaultPossible ValuesDescription
<app-key>stringApp key (e.g., 'SlackCLIAPI' or slug like 'github')
<action-type>stringread, read_bulk, write, run, search, search_or_write, search_and_write, filterAction type that matches the action's defined type
<action-key>stringAction key to execute

Usage:

npx zapier-sdk get-action <app-key> <action-type> <action-key>

get-input-fields-schema

Get the JSON Schema representation of input fields for an action. Returns a JSON Schema object describing the structure, types, and validation rules for the action's input parameters.

Options:

OptionTypeRequiredDefaultPossible ValuesDescription
<app-key>stringApp key (e.g., 'SlackCLIAPI' or slug like 'github') to get the input schema for
<action-type>stringread, read_bulk, write, run, search, search_or_write, search_and_write, filterAction type that matches the action's defined type
<action-key>stringAction key to get the input schema for
--authentication-idstringAuthentication ID to use when fetching the schema. Required if the action needs authentication to determine available fields.
--inputsobjectCurrent input values that may affect the schema (e.g., when fields depend on other field values)

Usage:

npx zapier-sdk get-input-fields-schema <app-key> <action-type> <action-key> [--authentication-id] [--inputs]

list-actions

List all actions for a specific app

Options:

OptionTypeRequiredDefaultPossible ValuesDescription
<app-key>stringApp key of actions to list (e.g., 'SlackCLIAPI' or slug like 'github')
--action-typestringread, read_bulk, write, run, search, search_or_write, search_and_write, filterFilter actions by type
--page-sizenumberNumber of actions per page
--max-itemsnumberMaximum total items to return across all pages
--cursorstringCursor to start from

Usage:

npx zapier-sdk list-actions <app-key> [--action-type] [--page-size] [--max-items] [--cursor]

list-input-field-choices

Get the available choices for a dynamic dropdown input field

Options:

OptionTypeRequiredDefaultPossible ValuesDescription
<app-key>stringApp key (e.g., 'SlackCLIAPI' or slug like 'github')
<action-type>stringread, read_bulk, write, run, search, search_or_write, search_and_write, filterAction type that matches the action's defined type
<action-key>stringAction key to execute
<input-field-key>stringInput field key to get choices for.
--authentication-idstringAuthentication ID to use for this action
--inputsobjectCurrent input values that may affect available choices
--pagenumberPage number for paginated results
--page-sizenumberNumber of choices per page
--max-itemsnumberMaximum total items to return across all pages
--cursorstringCursor to start from

Usage:

npx zapier-sdk list-input-field-choices <app-key> <action-type> <action-key> <input-field-key> [--authentication-id] [--inputs] [--page] [--page-size] [--max-items] [--cursor]

list-input-fields

Get the input fields required for a specific action

Options:

OptionTypeRequiredDefaultPossible ValuesDescription
<app-key>stringApp key (e.g., 'SlackCLIAPI' or slug like 'github')
<action-type>stringread, read_bulk, write, run, search, search_or_write, search_and_write, filterAction type that matches the action's defined type
<action-key>stringAction key to execute
--authentication-idstringAuthentication ID to use for this action
--inputsobjectCurrent input values that may affect available fields
--page-sizenumberNumber of input fields per page
--max-itemsnumberMaximum total items to return across all pages
--cursorstringCursor to start from

Usage:

npx zapier-sdk list-input-fields <app-key> <action-type> <action-key> [--authentication-id] [--inputs] [--page-size] [--max-items] [--cursor]

run-action

Execute an action with the given inputs

Options:

OptionTypeRequiredDefaultPossible ValuesDescription
<app-key>stringApp key (e.g., 'SlackCLIAPI' or slug like 'github')
<action-type>stringread, read_bulk, write, run, search, search_or_write, search_and_write, filterAction type that matches the action's defined type
<action-key>stringAction key to execute
--authentication-idstringAuthentication ID to use for this action
--inputsobjectInput parameters for the action
--page-sizenumberNumber of results per page
--max-itemsnumberMaximum total items to return across all pages
--cursorstringCursor to start from

Usage:

npx zapier-sdk run-action <app-key> <action-type> <action-key> [--authentication-id] [--inputs] [--page-size] [--max-items] [--cursor]

Apps

get-app

Get detailed information about a specific app

Options:

OptionTypeRequiredDefaultPossible ValuesDescription
<app-key>stringApp key of app to fetch (e.g., 'SlackCLIAPI' or slug like 'github')

Usage:

npx zapier-sdk get-app <app-key>

list-apps

List all available apps with optional filtering

Options:

OptionTypeRequiredDefaultPossible ValuesDescription
--app-keysarrayFilter apps by app keys (e.g., 'SlackCLIAPI' or slug like 'github')
--searchstringSearch for apps by name
--page-sizenumberNumber of apps per page
--max-itemsnumberMaximum total items to return across all pages
--cursorstringCursor to start from

Usage:

npx zapier-sdk list-apps [--app-keys] [--search] [--page-size] [--max-items] [--cursor]

Authentications

find-first-authentication

Find the first authentication matching the criteria

Options:

OptionTypeRequiredDefaultPossible ValuesDescription
--app-keystringApp key of authentication to find (e.g., 'SlackCLIAPI' or slug like 'github')
--searchstringSearch term to filter authentications by title
--titlestringFilter authentications by exact title match
--account-idstringFilter by account ID
--ownerstringFilter by owner

Usage:

npx zapier-sdk find-first-authentication [--app-key] [--search] [--title] [--account-id] [--owner]

find-unique-authentication

Find a unique authentication matching the criteria

Options:

OptionTypeRequiredDefaultPossible ValuesDescription
--app-keystringApp key of authentication to find (e.g., 'SlackCLIAPI' or slug like 'github')
--searchstringSearch term to filter authentications by title
--titlestringFilter authentications by exact title match
--account-idstringFilter by account ID
--ownerstringFilter by owner

Usage:

npx zapier-sdk find-unique-authentication [--app-key] [--search] [--title] [--account-id] [--owner]

get-authentication

Get a specific authentication by ID

Options:

OptionTypeRequiredDefaultPossible ValuesDescription
<authentication-id>numberAuthentication ID to retrieve

Usage:

npx zapier-sdk get-authentication <authentication-id>

list-authentications

List available authentications with optional filtering

Options:

OptionTypeRequiredDefaultPossible ValuesDescription
--app-keystringApp key of authentications to list (e.g., 'SlackCLIAPI' or slug like 'github')
--authentication-idsarrayList of authentication IDs to filter by
--searchstringSearch term to filter authentications by title
--titlestringFilter authentications by exact title match
--account-idstringFilter by account ID
--ownerstringFilter by owner, 'me' for your own authentications or a specific user ID
--page-sizenumberNumber of authentications per page
--max-itemsnumberMaximum total items to return across all pages
--cursorstringCursor to start from

Usage:

npx zapier-sdk list-authentications [--app-key] [--authentication-ids] [--search] [--title] [--account-id] [--owner] [--page-size] [--max-items] [--cursor]

HTTP Requests

request

Make authenticated HTTP requests through Zapier's Relay service

Options:

OptionTypeRequiredDefaultPossible ValuesDescription
<url>stringThe URL to request (will be proxied through Relay)
--methodstringGET, POST, PUT, DELETE, PATCH, HEAD, OPTIONSHTTP method
--bodystringRequest body as a string
--authentication-idnumberZapier authentication ID to use for the request
--callback-urlstringURL to send async response to (makes request async)
--authentication-templatestringOptional JSON string authentication template to bypass Notary lookup
--headersstringRequest headers
--relay-base-urlstringBase URL for Relay service

Usage:

npx zapier-sdk request <url> [--method] [--body] [--authentication-id] [--callback-url] [--authentication-template] [--headers] [--relay-base-url]

Utilities

add

Add apps with manifest locking and TypeScript type generation - updates .zapierrc with app versions and generates TypeScript definition files

Options:

OptionTypeRequiredDefaultPossible ValuesDescription
<app-keys>arrayOne or more app keys to add (e.g., 'slack', 'github', 'trello')
--authentication-idsarrayAuthentication IDs to use for type generation (e.g., ['123', '456'])
--config-pathstringPath to Zapier config file (defaults to '.zapierrc', e.g., './custom/.zapierrc')
--types-outputstringDirectory for TypeScript type files (defaults to (src/lib/.)/zapier/apps/, e.g., './src/types/zapier/')

Usage:

npx zapier-sdk add <app-keys> [--authentication-ids] [--config-path] [--types-output]

build-manifest

Build manifest entries for apps - can optionally write to disk or just return JSON

Options:

OptionTypeRequiredDefaultPossible ValuesDescription
<app-keys>arrayOne or more app keys to build manifest entries for (e.g., 'slack', 'github', 'trello')
--skip-writebooleanIf true, returns manifest entries without writing to disk. If false or omitted, writes to the manifest file.
--config-pathstringPath to the manifest file. Only used when skipWrite is false or omitted.

Usage:

npx zapier-sdk build-manifest <app-keys> [--skip-write] [--config-path]

bundle-code

Bundle TypeScript code into executable JavaScript

Options:

OptionTypeRequiredDefaultPossible ValuesDescription
<input>stringInput TypeScript file path to bundle
--outputstringOutput file path (defaults to input with .js extension)
--stringbooleanReturn bundled code as string instead of writing to file
--minifybooleanMinify the bundled output
--targetstringECMAScript target version
--cjsbooleanOutput CommonJS format instead of ESM

Usage:

npx zapier-sdk bundle-code <input> [--output] [--string] [--minify] [--target] [--cjs]

generate-app-types

Generate TypeScript type definitions for apps - can optionally write to disk or just return type strings

Options:

OptionTypeRequiredDefaultPossible ValuesDescription
<app-keys>arrayOne or more app keys to generate types for (e.g., 'slack', 'github', 'trello')
--authentication-idsarrayAuthentication IDs to use for type generation (e.g., ['123', '456'])
--skip-writebooleanIf true, returns type definitions without writing to disk. If false or omitted, writes type files.
--types-output-directorystringDirectory for TypeScript type files. Required when skipWrite is false or omitted.

Usage:

npx zapier-sdk generate-app-types <app-keys> [--authentication-ids] [--skip-write] [--types-output-directory]

get-login-config-path

Show the path to the login configuration file

Usage:

npx zapier-sdk get-login-config-path

mcp

Start MCP server for Zapier SDK

Options:

OptionTypeRequiredDefaultPossible ValuesDescription
--portstringPort to listen on (for future HTTP transport)

Usage:

npx zapier-sdk mcp [--port]

Keywords

zapier

FAQs

Package last updated on 09 Jan 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts