These are the generated docs for all Zapier platform CLI commands.
You can install the CLI with npm install -g zapier-platform-cli
.
$ npm install -g zapier-platform-cli
Lists all the apps you can access.
Usage: zapier apps
Lists any apps that you have admin access to. Also checks the current directory for a linked app, which you can control with zapier link
.
Arguments
--format={plain,json,raw,row,table,small}
-- optional, display format. Default istable
--help
-- optional, prints this help text--debug
-- optional, print debug API calls and tracebacks
$ zapier apps
# All apps listed below.
#
# ┌─────────┬───────────-─┬─────────────────────┬────────┐
# │ Title │ Unique Slug │ Timestamp │ Linked │
# ├─────────┼───────────-─┼─────────────────────┼────────┤
# │ Example │ Example │ 2016-01-01T22:19:28 │ ✔ │
# └─────────┴───────────-─┴─────────────────────┴────────┘
#
# Try linking the current directory to a different app with the `zapier link` command.
Builds a pushable zip from the current directory.
Usage: zapier build
Builds a ready-to-upload zip file, but does not upload / push the zip file. Generally you'd use zapier push
which does this and zapier upload
together.
It does the following steps:
- Creates a temporary folder
- Copies all code into the temporary folder
- Adds an entry point
zapierwrapper.js
- Generates and validates app definition.
- Detects dependencies via browserify (optional)
- Zips up all needed
.js
files. If you want to include more files, add a "includeInBuild" property (array with strings of regexp paths) to your.zapierapprc
. - Moves the zip to
build/build.zip
andbuild/source.zip
If you get live errors like
Error: Cannot find module 'some-path'
, try disabling dependency detection.
Arguments
--disable-dependency-detection
-- optional, disables walking required files to slim the build--include-js-map
-- optional, include .js.map files (usually source maps)
$ zapier build
# Building project.
#
# Copying project to temp directory - done!
# Installing project dependencies - done!
# Applying entry point file - done!
# Validating project - done!
# Building app definition.json - done!
# Zipping project and dependencies - done!
# Cleaning up temp directory - done!
#
# Build complete!
Manage the admins on your project. Can optionally --remove.
Usage: zapier collaborate [[email protected]]
Give any user registered on Zapier the ability to collaborate on your app. Commonly, this is useful for teammates, contractors, or other developers who might want to make changes on your app. Only admin access is supported. If you'd only like to provide read-only or testing access, try zapier invite
.
Arguments
- none -- print all admins
email [[email protected]]
-- optional, which user to add/remove--remove
-- optional, elect to remove this user--format={plain,json,raw,row,table,small}
-- optional, display format. Default istable
--help
-- optional, prints this help text--debug
-- optional, print debug API calls and tracebacks
$ zapier collaborate
# The admins on your app "Example" listed below.
#
# ┌──────────────────┬───────┬──────────┐
# │ Email │ Role │ Status │
# ├──────────────────┼───────┼──────────┤
# │ [email protected] │ admin │ accepted │
# └──────────────────┴───────┴──────────┘
$ zapier collaborate [email protected]
# Preparing to add admin [email protected] to your app "Example".
#
# Adding [email protected] - done!
#
# Admins updated! Try viewing them with `zapier collaborate`.
$ zapier collaborate [email protected] --remove
# Preparing to remove admin [email protected] from your app "Example".
#
# Removing [email protected] - done!
#
# Admins updated! Try viewing them with `zapier collaborate`.
Converts a Legacy Web Builder or Visual Builder app to a CLI app.
Usage: zapier convert appid path
Creates a new CLI app from an existing app.
If you're converting a Legacy Web Builder app: the new app contains code stubs only. It is supposed to get you started - it isn't going to create a complete app!
After running this, you'll have a new app in your directory, with stubs for your trigger and actions. If you re-run this command on an existing directory it will leave existing files alone and not clobber them.
Once you've run the command, make sure to run zapier push
to see it in the editor.
If you're converting a Visual Builder app, then it will be identical and ready to push and use immediately! You'll need to do a zapier push
before the new version is visible in the editor, but otherwise you're good to go.
Arguments
appid [value]
-- required, Get the appid from "https://zapier.com/app/developer", clicking on an integration, and taking the number after "/app" in the url.location [value]
-- required, Relative to your current path - IE:.
for current directory--version=1.0.0
-- optional, Convert a specific version. Required when converting a Visual Builder app
$ zapier convert 1234 .
# Let's convert your app!
#
# Downloading app from Zapier - done!
# Writing triggers/trigger.js - done!
# Writing package.json - done!
# Writing index.js - done!
# Copy ./index.js - done!
# Copy ./package.json - done!
# Copy ./triggers/trigger.js - done!
#
# Finished! You might need to `npm install` then try `zapier test`!
Delete a version of your app (or the whole app) as long as it has no users/Zaps.
Usage: zapier delete version 1.0.0
A utility to allow deleting app versions that aren't used.
The app version needs to have no users/Zaps in order to be deleted.
Arguments
appOrVersion [{app,version}]
-- required, delete the whole app, or just a version?version [1.0.0]
-- optional, the version to delete
$ zapier delete version 1.0.0
# Preparing to delete version 1.0.0 of your app "Example".
#
# Deleting 1.0.0 - done!
# Deletion successful!
Mark a non-production version of your app as deprecated, with removal by a certain date.
Usage: zapier deprecate 1.0.0 2017-01-20
A utility to alert users of breaking changes that require the deprecation of an app version.
Use this when an app version will not be supported or start breaking at a known date.
Zapier will send an email warning users of the deprecation once a date is set, they'll start seeing it as "Deprecated" in the UI, and once the deprecation date arrives, if the Zaps weren't updated, they'll be paused and the users will be emailed again explaining what happened.
After the deprecation date has passed it will be safe to delete that app version.
Do not use this if you have non-breaking changes, for example, just fixing help text or labels is a very safe operation.
Arguments
version [1.0.0]
-- required, the version to deprecatedeprecationDate [2017-01-20]
-- required, date Zapier will make the version unavailable
$ zapier deprecate 1.0.0 2017-01-20
# Preparing to deprecate version 1.0.0 your app "Example".
#
# Deprecating 1.0.0 - done!
# Deprecation successful!
#
# We'll let users know that this version is no longer recommended and will cease to work on 2017-01-20.
Describes the current app.
Usage: zapier describe
Prints a human readable enumeration of your app's triggers, searches, and actions as seen by Zapier. Useful to understand how your resources convert and relate to different actions.
These are the same actions we'd display in our editor!
Noun
-- your action's nounLabel
-- your action's labelResource
-- the resource (if any) this action is tied toAvailable Methods
-- testable methods for this action
Arguments
--format={plain,json,raw,row,table,small}
-- optional, display format. Default istable
--help
-- optional, prints this help text--debug
-- optional, print debug API calls and tracebacks
$ zapier describe
# A description of your app "Example" listed below.
#
# Triggers
#
# ┌────────────┬────────────────────┬──────────────┬───────────────────────────────────────────────┐
# │ Noun │ Label │ Resource Ref │ Available Methods │
# ├────────────┼────────────────────┼──────────────┼───────────────────────────────────────────────┤
# │ Member │ Updated Subscriber │ member │ triggers.updated_member.operation.perform │
# │ │ │ │ triggers.updated_member.operation.inputFields │
# │ │ │ │ resources.member.list.operation.perform │
# │ │ │ │ resources.member.list.operation.inputFields │
# └────────────┴────────────────────┴──────────────┴───────────────────────────────────────────────┘
#
# Searches
#
# Nothing found for searches, maybe try the `zapier scaffold` command?
#
# Creates
#
# Nothing found for creates, maybe try the `zapier scaffold` command?
#
# If you'd like to add more, try the `zapier scaffold` command to kickstart!
Read, write, and delete environment variables.
Usage: zapier env 1.0.0 CLIENT_SECRET 12345
Manage the environment of your app so that process.env
has the necessary variables, making it easy to match a local environment with a production environment via CLIENT_SECRET=12345 zapier test
.
Arguments
version [1.0.0]
-- required, the app version's environment to work onkey [CLIENT_SECRET]
-- optional, the uppercase key of the environment variable to setvalue [12345]
-- optional, the raw value to set to the key--remove
-- optional, optionally remove environment variable with this key--format={plain,json,raw,row,table,small}
-- optional, display format. Default istable
--help
-- optional, prints this help text--debug
-- optional, print debug API calls and tracebacks
$ zapier env 1.0.0
# The env of your "Example" listed below.
#
# ┌─────────┬───────────────┬───────┐
# │ Version │ Key │ Value │
# ├─────────┼───────────────┼───────┤
# │ 1.0.0 │ CLIENT_SECRET │ 12345 │
# └─────────┴───────────────┴───────┘
#
# Try setting an env with the `zapier env 1.0.0 CLIENT_SECRET 12345` command.
$ zapier env 1.0.0 CLIENT_SECRET 12345
# Preparing to set environment CLIENT_SECRET for your 1.0.0 "Example".
#
# Setting CLIENT_SECRET to "12345" - done!
#
# Environment updated! Try viewing it with `zapier env 1.0.0`.
$ zapier env 1.0.0 CLIENT_SECRET --remove
# Preparing to remove environment CLIENT_SECRET for your 1.0.0 "Example".
#
# Deleting CLIENT_SECRET - done!
#
# Environment updated! Try viewing it with `zapier env 1.0.0`.
Lists all the commands you can use.
Usage: zapier help [command]
Prints documentation to the terminal screen.
Generally - the zapier
command works off of two files:
- ~/.zapierrc (home directory identifies the deploy key & user)
- ./.zapierapprc (current directory identifies the app)
The zapier login
and zapier register "Example"
or zapier link
commands will help manage those files. All commands listed below.
Arguments
- none -- print all commands
cmd [value]
-- optional, the command to view docs for--format={plain,json,raw,row,table,small}
-- optional, display format. Default istable
--help
-- optional, prints this help text--debug
-- optional, print debug API calls and tracebacks
$ zapier help apps
$ zapier help scaffold
$ zapier help
# Usage: zapier COMMAND [command-specific-arguments] [--command-specific-options]
#
# ┌─────────────┬───────────────────────────────────────┬────────────────────────────────────────────────────────────────────────────┐
# │ Command │ Example │ Help │
# ├─────────────┼───────────────────────────────────────┼────────────────────────────────────────────────────────────────────────────┤
# │ apps │ zapier apps │ Lists all the apps you can access. │
# │ build │ zapier build │ Builds a uploadable zip from the current directory. │
# │ collaborate │ zapier collaborate [[email protected]] │ Manage the admins on your project. Can optionally --remove. │
# │ push │ zapier push │ Build and upload the current app - does not promote. │
# │ deprecate │ zapier deprecate 1.0.0 2017-01-20 │ Mark a non-production version of your app as deprecated by a certain date. │
# │ describe │ zapier describe │ Describes the current app. │
# │ env │ zapier env 1.0.0 CLIENT_SECRET 12345 │ Read and write environment variables. │
# │ help │ zapier help [command] │ Lists all the commands you can use. │
# │ history │ zapier history │ Prints all recent history for your app. │
# │ init │ zapier init path │ Initializes a new zapier app in a directory. │
# │ invite │ zapier invite [[email protected]] │ Manage the invitees/testers on your project. Can optionally --remove. │
# │ link │ zapier link │ Link the current directory to an app you have access to. │
# │ login │ zapier login │ Configure your `~/.zapierrc` with a deploy key. │
$ │ logout │ zapier logout │ Deactivates all your personal deploy keys and resets `~/.zapierrc`. │
# │ logs │ zapier logs │ Prints recent logs. See help for filter arguments. │
# │ migrate │ zapier migrate 1.0.0 1.0.1 [10%] │ Migrate users from one version to another. │
# │ promote │ zapier promote 1.0.0 │ Promotes a specific version to public access. │
# │ register │ zapier register "Example" │ Registers a new app in your account. │
# │ scaffold │ zapier scaffold resource "Contact" │ Adds a starting resource, trigger, action or search to your app. │
# │ test │ zapier test │ Tests your app via `npm test`. │
# │ upload │ zapier upload │ Upload the last build as a version. │
# │ validate │ zapier validate │ Validates the current project. │
# │ versions │ zapier versions │ Lists all the versions of the current app. │
# └─────────────┴───────────────────────────────────────┴────────────────────────────────────────────────────────────────────────────┘
Prints all edit history for your app.
Usage: zapier history
Get the history of your app, listing all the changes made over the lifetime of your app. This includes everything from creation, updates, migrations, admins and invitee changes as well as who made the change and when.
Arguments
--format={plain,json,raw,row,table,small}
-- optional, display format. Default istable
--help
-- optional, prints this help text--debug
-- optional, print debug API calls and tracebacks
$ zapier history
# The history of your app "Example" listed below.
#
# ┌──────────────────────────┬───────────────────┬──────────────────┬─────────────────────┐
# │ What │ Message │ Who │ Timestamp │
# ├──────────────────────────┼───────────────────┼──────────────────┼─────────────────────┤
# │ admin added │ [email protected] │ [email protected] │ 2016-01-10T16:12:33 │
# │ environment variable set │ CLIENT_SECRET │ [email protected] │ 2016-01-01T22:51:01 │
# │ version added │ 1.2.52 │ [email protected] │ 2016-01-01T22:19:36 │
# │ app created │ initial creation │ [email protected] │ 2016-01-01T22:19:28 │
# └──────────────────────────┴───────────────────┴──────────────────┴─────────────────────┘
Manage the invitees/testers on your project. Can optionally specify a version or --remove.
Usage: zapier invite [[email protected]] [1.0.0]
Invite any user registered on Zapier to test your app. Commonly, this is useful for teammates, contractors, or other team members who might want to test, QA, or view your app versions. If you'd like to provide full admin access, try zapier collaborate
.
Send an email directly, which contains a one-time use link for them only - or share the public URL to "bulk" invite folks!
Arguments
- none -- print all invitees
email [[email protected]]
-- optional, which user to add/removeversion [1.0.0]
-- optional, only invite to a specific version--remove
-- optional, elect to remove this user--format={plain,json,raw,row,table,small}
-- optional, display format. Default istable
--help
-- optional, prints this help text--debug
-- optional, print debug API calls and tracebacks
$ zapier invite
# The invitees on your app listed below.
# ┌───────────────────┬──────────┬──────────┬─────────┐
# │ Email │ Role │ Status │ Version │
# ├───────────────────┼──────────┼──────────┼─────────┤
# │ [email protected] │ invitees │ accepted │ 1.0.0 │
# └───────────────────┴──────────┴──────────┴─────────┘
#
# Don't want to send individual invite emails? Use this public link and share with anyone on the web:
#
# https://zapier.com/platform/public-invite/1/222dcd03aed943a8676dc80e2427a40d/
$ zapier invite [email protected] 1.0.0
# Preparing to add invitee [email protected] to your app "Example (1.0.0)".
#
# Adding [email protected] - done!
#
# Invitees updated! Try viewing them with `zapier invite`.
$ zapier invite [email protected] --remove
# Preparing to remove invitee [email protected] from your app "Example".
#
# Removing [email protected] - done!
#
# Invitees updated! Try viewing them with `zapier invite`.
Link the current directory to an app you have access to.
Usage: zapier link
Link the current directory to an app you have access to. It is fairly uncommon to run this command - more often you'd just git clone [email protected]:example-inc/example.git
which would have a .zapierapprc
file already included. If not, you'd need to be an admin on the app and use this command to regenerate the .zapierapprc
file.
Or, if you are making an app from scratch - you should prefer zapier init
.
This will change the
./.zapierapprc
(which identifies the app assosciated with the current directory).
Arguments
--format={plain,json,raw,row,table,small}
-- optional, display format. Default istable
--help
-- optional, prints this help text--debug
-- optional, print debug API calls and tracebacks
$ zapier link
# Which app would you like to link the current directory to?
#
# ┌────────┬─────────────┬────────────┬─────────────────────┬────────┐
# │ Number │ Title │ Unique Key │ Timestamp │ Linked │
# ├────────┼─────────────┼────────────┼─────────────────────┼────────┤
# │ 1 │ Example │ Example │ 2016-01-01T22:19:28 │ ✔ │
# └────────┴─────────────┴────────────┴─────────────────────┴────────┘
# ...or type any title to create new app!
#
# Which app number do you want to link? You also may type a new app title to create one. (Ctrl-C to cancel)
#
1
#
# Selecting existing app "Example" - done!
# Setting up `.zapierapprc` file - done!
#
# Finished! You can `zapier push` now to build & upload a version!
Configure your
~/.zapierrc
with a deploy key.
Usage: zapier login
This is an interactive prompt which will create, retrieve and store a deploy key.
This will change the
~/.zapierrc
(home directory identifies the deploy key & user).
$ zapier login
# What is your Zapier login email address? (Ctrl-C to cancel)
# What is your Zapier login password?
# <type here>
# Your deploy key has been saved to ~/.zapierrc. Now try `zapier init .` to start a new local app.
Deactivates all your personal deploy keys and resets
~/.zapierrc
.
Usage: zapier logout
Deactivates all your personal deploy keys and resets your local config. Does not delete any apps or versions.
This will delete the
~/.zapierrc
(home directory identifies the deploy key & user).
$ zapier logout
Preparing to deactivate personal deploy keys and reset local configs.
Deactivating personal deploy keys - done!
Destroying `~/.zapierrc` - done!
All personal keys deactivated - now try `zapier login` to login again.
Prints recent logs. See help for filter arguments.
Usage: zapier logs
Get the logs that are automatically collected during the running of your app. Either explicitly during z.console.log()
, automatically via z.request()
, or any sort of traceback or error.
Does not collect or list the errors found locally during
zapier test
.
Arguments
--version=value
-- optional, display only this version's logs (default is all versions)--status={any,success,error}
-- optional, display only success logs (status code < 400 / info) or error (status code > 400 / tracebacks). Default isany
--type={console,bundle,http}
-- optional, display only console, bundle, or http logs. Default isconsole
--detailed
-- optional, show detailed logs (like request/response body and headers)[email protected]
-- optional, display only this user's logs. Default isme
--limit=50
-- optional, control the maximum result size. Default is50
--format={plain,json,raw,row,table,small}
-- optional, display format. Default istable
--help
-- optional, prints this help text--debug
-- optional, print debug API calls and tracebacks
$ zapier logs
# The logs of your app "Example" listed below.
#
# ┌──────────────────────────────────────────────────────┐
# │ = 1 = │
# │ Log │ console says hello world! │
# │ Version │ 1.0.0 │
# │ Step │ 99c16565-1547-4b16-bcb5-45189d9d8afa │
# │ Timestamp │ 2016-01-01T23:04:36-05:00 │
# └───────────────┴──────────────────────────────────────┘
$ zapier logs --type=http
# The logs of your app "Example" listed below.
#
# ┌────────────────────────────────────────────────────────┐
# │ = 1 = │
# │ Status │ 200 │
# │ URL │ http://httpbin.org/get │
# │ Querystring │ hello=world │
# │ Version │ 1.0.0 │
# │ Step │ 99c16565-1547-4b16-bcb5-45189d9d8afa │
# │ Timestamp │ 2016-01-01T23:04:36-05:00 │
# └─────────────────┴──────────────────────────────────────┘
Migrate users from one version of your app to another.
Usage: zapier migrate 1.0.0 1.0.1 [10%]
Starts a migration to move users between different versions of your app. You may also "revert" by simply swapping the from/to verion strings in the command line arguments (IE: zapier migrate 1.0.1 1.0.0
).
Only migrate users between non-breaking versions, use zapier deprecate
if you have breaking changes!
Migrations can take between 5-10 minutes, so be patient and check zapier history
to track the status
Note: since a migration is only for non-breaking changes, users are not emailed about the update/migration. It will be a transparent process for them.
Tip! We recommend migrating a small subset of users first, then watching error logs of the new version for any sort of odd behavior. When you feel confident there are no bugs, go ahead and migrate everyone. If you see unexpected errors, you can revert.
Tip 2! You can migrate a single user by using
--user
(IE:zapier migrate 1.0.0 1.0.1 [email protected]
).
Arguments
fromVersion [1.0.0]
-- required, the version from which to migrate userstoVersion [1.0.1]
-- required, the version to which to migrate userspercent [100%]
-- optional, percent of users to migrate. Default is100%
[email protected]
-- optional, migrate only this user
$ zapier migrate 1.0.0 1.0.1 15%
# Getting ready to migrate your app "Example" from 1.0.0 to 1.0.1.
#
# Starting migration from 1.0.0 to 1.0.1 for 15% - done!
#
# Migration successfully queued, please check `zapier history` to track the status. Normal migrations take between 5-10 minutes.
Promotes a specific version to public access.
Usage: zapier promote 1.0.0
Promotes an app version into production (non-private) rotation, which means new users can use this app version.
- This does mark the version as the official public version - all other versions & users are grandfathered.
- This does not build/upload or deploy a version to Zapier - you should
zapier push
first. - This does not move old users over to this version -
zapier migrate 1.0.0 1.0.1
does that. - This does not recommend old users stop using this version -
zapier deprecate 1.0.0 2017-01-01
does that.
Promotes are an inherently safe operation for all existing users of your app.
If this is your first time promoting - this will start the platform quality assurance process by alerting the Zapier platform team of your intent to make your app public. We'll respond within a few business days.
Arguments
version [1.0.0]
-- required,
$ zapier promote 1.0.0
# Preparing to promote version 1.0.0 of your app "Example".
* Changelog found for 1.0.0!
* ---
* Initial release!
* ---
#
# Promoting 1.0.0 - done!
# Promotion successful!
#
# Optionally try the `zapier migrate 1.0.0 1.0.1 [10%]` command to move users to this version.
Build and upload the current app - does not promote.
Usage: zapier push
A shortcut for zapier build && zapier upload
- this is our recommended way to push an app. This is a common workflow:
- Make changes in
index.js
or other files. - Run
zapier test
. - Run
zapier push
. - QA/experiment in the Zapier.com Zap editor.
- Go to 1 and repeat.
Note: this is always a safe operation as live/production apps are protected from pushes. You must use
zapier promote
orzapier migrate
to impact live users.
Note: this command will create (or overwrite) an AppVersion that matches the ones listed in your
package.json
. If you want to push to a new version, increment the "version" key inpackage.json
.
If you have not yet registered your app, this command will prompt you for your app title and to register the app.
$ zapier push
# Preparing to build and upload app.
#
# Copying project to temp directory - done!
# Installing project dependencies - done!
# Applying entry point file - done!
# Validating project - done!
# Building app definition.json - done!
# Zipping project and dependencies - done!
# Cleaning up temp directory - done!
# Uploading version 1.0.0 - done!
#
# Build and upload complete! Try loading the Zapier editor now, or try `zapier promote` to put it into rotation or `zapier migrate` to move users over
Registers a new app in your account.
Usage: zapier register "Example"
This command registers your app with Zapier. After running this, you can run zapier push
to push a version of your app that you can use in the Zapier editor.
This will change the
./.zapierapprc
(which identifies the app associated with the current directory).
Arguments
title ["My App Name"]
-- required,
$ zapier register "Example"
# Let's register your app "Example" on Zapier!
#
# Creating a new app named "Example" on Zapier - done!
# Setting up .zapierapprc file - done!
# Applying entry point file - done!
#
# Finished!
Adds a starting resource, trigger, action or search to your app.
Usage: zapier scaffold {resource|trigger|search|create} "Name"
The scaffold command does two general things:
- Creates a new destination file like
resources/contact.js
- (Attempts to) import and register it inside your entry
index.js
You can mix and match several options to customize the created scaffold for your project.
Note, we may fail to rewrite your
index.js
so you may need to handle the require and registration yourself.
Arguments
type [{resource,trigger,search,create}]
-- required, what type of thing are you creatingname ["Some Name"]
-- required, the name of the new thing to create--dest={type}s/{name}
-- optional, sets the new file's path. Default is{type}s/{name}
--entry=index.js
-- optional, where to import the new file. Default isindex.js
$ zapier scaffold resource "Contact"
$ zapier scaffold resource "Contact" --entry=index.js
$ zapier scaffold resource "Contag Tag" --dest=resources/tag
$ zapier scaffold resource "Tag" --entry=index.js --dest=resources/tag
# Adding resource scaffold to your project.
#
# Writing new resources/tag.js - done!
# Rewriting your index.js - done!
#
# Finished! We did the best we could, you might gut check your files though.
Tests your app via
npm test
.
Usage: zapier test
This command is effectively the same as npm test
, except we also validate your app and set up the environment. We recommend using mocha as your testing framework.
Arguments
--debug
-- optional, print zapier detailed logs to standard out--timeout=value
-- optional, set test-case timeout in milliseconds [2000]--grep=value
-- optional, only run tests matching pattern--skip-validate
-- optional, forgo runningzapier validate
beforenpm test
$ zapier test
#
# triggers
# hello world
# ✓ should load fine (777ms)
# ✓ should accept parameters (331ms)
#
# 2 passing (817ms)
#
Upload the last build as a version.
Usage: zapier upload
Upload the zip files already built by zapier build
in build/build.zip and build/source.zip. The version and other app details are read by Zapier from the zip files.
Note: we generally recommend using
zapier push
which does bothzapier build && zapier upload
in one step.
$ zapier upload
# Preparing to upload a new version.
#
# Uploading version 1.0.0 - done!
#
# Upload of build/build.zip and build/source.zip complete! Try `zapier versions` now!
Validates the current app.
Usage: zapier validate
Runs the standard validation routine powered by json-schema that checks your app for any structural errors. This is the same routine that runs during zapier build
, zapier upload
, zapier push
or even as a test in zapier test
.
Arguments
--without-style
-- optional, forgo pinging the Zapier server to do a style check--format={plain,json,raw,row,table,small}
-- optional, display format. Default istable
--help
-- optional, prints this help text--debug
-- optional, print debug API calls and tracebacks
$ zapier validate
# Validating project locally.
#
# No errors found during validation routine.
#
# This project is structurally sound!
$ zapier validate
# Validating project locally.
#
# ┌────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
# │ = 1 = │
# │ Property │ instance │
# │ Message │ requires property "platformVersion" │
# │ Links │ https://github.com/zapier/zapier-platform-schema/blob/v1.0.0/docs/build/schema.md#appschema │
# └──────────────┴─────────────────────────────────────────────────────────────────────────────────────────────┘
#
# Make any changes to your project and rerun this command.
Lists all the versions of the current app.
Usage: zapier versions
Lists the versions of your app available for use in the Zapier editor.
Arguments
--format={plain,json,raw,row,table,small}
-- optional, display format. Default istable
--help
-- optional, prints this help text--debug
-- optional, print debug API calls and tracebacks
$ zapier versions
# All versions of your app "Example" listed below.
#
# ┌─────────┬──────────┬───────┬────────────────┬──────────────────┬─────────────────────┐
# │ Version │ Platform │ Users │ Deployment │ Deprecation Date │ Timestamp │
# ├─────────┼──────────┼───────┼────────────────┼──────────────────┼─────────────────────┤
# │ 1.0.0 │ 3.0.0 │ 0 │ non-production │ null │ 2016-01-01T22:19:36 │
# └─────────┴──────────┴───────┴────────────────┴──────────────────┴─────────────────────┘