Skip to content

Commit

Permalink
Merge pull request #888 from zapier/PDE-5323-sync-cli-docs
Browse files Browse the repository at this point in the history
PDE-5323 docs(cli): sync CLI docs, backporting docs for `pull`
  • Loading branch information
eliangcs authored Oct 14, 2024
2 parents 221fd06 + 26ca0ab commit 51193ba
Show file tree
Hide file tree
Showing 10 changed files with 158 additions and 2 deletions.
27 changes: 27 additions & 0 deletions docs/cli.html
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,7 @@
<li><a href="#logs">logs</a></li>
<li><a href="#migrate">migrate</a></li>
<li><a href="#promote">promote</a></li>
<li><a href="#pull">pull</a></li>
<li><a href="#push">push</a></li>
<li><a href="#register">register</a></li>
<li><a href="#scaffold">scaffold</a></li>
Expand Down Expand Up @@ -1017,6 +1018,32 @@ <h2 id="promote">promote</h2>
</div>
</div>
</div><div class="row">
<div class="row-height">
<div class="col-md-5 col-sm-12 col-height docs-primary">
<h2 id="pull">pull</h2>
</div>
<div class="col-md-7 col-sm-12 col-height is-empty docs-code">

</div>
</div>
</div><div class="row">
<div class="row-height">
<div class="col-md-5 col-sm-12 col-height docs-primary">
<blockquote>
<p>Retrieve and update your local integration files with the latest version.</p>
</blockquote><p><strong>Usage</strong>: <code>zapier pull</code></p><p>This command updates your local integration files with the latest version. You will be prompted with a confirmation dialog before continuing if there any destructive file changes.</p><p>Zapier may release new versions of your integration with bug fixes or new features. In the event this occurs, you will be unable to do the following until your local files are updated by running <code>zapier pull</code>:</p><ul>
<li>push to the promoted version</li>
<li>promote a new version</li>
<li>migrate users from one version to another</li>
</ul><p><strong>Flags</strong></p><ul>
<li><code>-d, --debug</code> | Show extra debugging output.</li>
</ul>
</div>
<div class="col-md-7 col-sm-12 col-height is-empty docs-code">

</div>
</div>
</div><div class="row">
<div class="row-height">
<div class="col-md-5 col-sm-12 col-height docs-primary">
<h2 id="push">push</h2>
Expand Down
18 changes: 18 additions & 0 deletions docs/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -553,6 +553,24 @@ Check `zapier jobs` to track the status of the promotion. Or use `zapier history
* `zapier promote 1.0.0`


## pull

> Retrieve and update your local integration files with the latest version.
**Usage**: `zapier pull`

This command updates your local integration files with the latest version. You will be prompted with a confirmation dialog before continuing if there any destructive file changes.

Zapier may release new versions of your integration with bug fixes or new features. In the event this occurs, you will be unable to do the following until your local files are updated by running `zapier pull`:

* push to the promoted version
* promote a new version
* migrate users from one version to another

**Flags**
* `-d, --debug` | Show extra debugging output.


## push

> Build and upload the current integration.
Expand Down
21 changes: 21 additions & 0 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@
<li><a href="#private-app-version-default">Private App Version (default)</a></li>
<li><a href="#sharing-an-app-version">Sharing an App Version</a></li>
<li><a href="#promoting-an-app-version">Promoting an App Version</a></li>
<li><a href="#pulling-latest-version-from-zapier">Pulling Latest Version from Zapier</a></li>
</ul>
</li>
<li><a href="#converting-an-existing-app">Converting an Existing App</a></li>
Expand Down Expand Up @@ -474,6 +475,7 @@ <h2 id="table-of-contents">Table of Contents</h2>
<li><a href="#private-app-version-default">Private App Version (default)</a></li>
<li><a href="#sharing-an-app-version">Sharing an App Version</a></li>
<li><a href="#promoting-an-app-version">Promoting an App Version</a></li>
<li><a href="#pulling-latest-version-from-zapier">Pulling Latest Version from Zapier</a></li>
</ul>
</li>
<li><a href="#converting-an-existing-app">Converting an Existing App</a></li>
Expand Down Expand Up @@ -1058,6 +1060,7 @@ <h2 id="deploying-an-app-version">Deploying an App Version</h2>
<li><code>zapier deprecate 1.0.0 2020-06-01</code> - mark a version as deprecated, but let users continue to use it (we&apos;ll email them)</li>
<li><code>zapier env:set 1.0.0 KEY=VALUE</code> - set an environment variable to some value</li>
<li><code>zapier delete:version 1.0.0</code> - delete a version entirely. This is mostly for clearing out old test apps you used personally. It will fail if there are any users. You probably want <code>deprecate</code> instead.</li>
<li><code>zapier pull</code> - pull the latest version from Zapier server. This is used in the event that Zapier made an update since your last version.</li>
</ul><blockquote>
<p>Note: To see the changes that were just pushed reflected in the browser, you have to manually refresh the browser each time you push.</p>
</blockquote>
Expand Down Expand Up @@ -1143,6 +1146,24 @@ <h3 id="promoting-an-app-version">Promoting an App Version</h3>
</div>
</div>
</div><div class="row">
<div class="row-height">
<div class="col-md-5 col-sm-12 col-height docs-primary">
<h3 id="pulling-latest-version-from-zapier">Pulling Latest Version from Zapier</h3>
</div>
<div class="col-md-7 col-sm-12 col-height is-empty docs-code">

</div>
</div>
</div><div class="row">
<div class="row-height">
<div class="col-md-5 col-sm-12 col-height docs-primary">
<p>Zapier may fix bugs or add new features to your integration and release a new version. If you attempt to use <code>zapier push</code> and we&apos;ve released a newer version, you will be prevented from pushing until you run <code>zapier pull</code> to update your local files with the latest version.</p><p>Any destructive file changes will prompt you with a confirmation dialog before continuing.</p>
</div>
<div class="col-md-7 col-sm-12 col-height is-empty docs-code">

</div>
</div>
</div><div class="row">
<div class="row-height">
<div class="col-md-5 col-sm-12 col-height docs-primary">
<h2 id="converting-an-existing-app">Converting an Existing App</h2>
Expand Down
7 changes: 7 additions & 0 deletions packages/cli/README-source.md
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@ If you'd like to manage your **Version**, use these commands:
* `zapier deprecate 1.0.0 2020-06-01` - mark a version as deprecated, but let users continue to use it (we'll email them)
* `zapier env:set 1.0.0 KEY=VALUE` - set an environment variable to some value
* `zapier delete:version 1.0.0` - delete a version entirely. This is mostly for clearing out old test apps you used personally. It will fail if there are any users. You probably want `deprecate` instead.
* `zapier pull` - pull the latest version from Zapier server. This is used in the event that Zapier made an update since your last version.
> Note: To see the changes that were just pushed reflected in the browser, you have to manually refresh the browser each time you push.
Expand Down Expand Up @@ -285,6 +286,12 @@ zapier migrate 1.0.0 1.0.1
zapier deprecate 1.0.0 2020-06-01
```
### Pulling Latest Version from Zapier
Zapier may fix bugs or add new features to your integration and release a new version. If you attempt to use `zapier push` and we've released a newer version, you will be prevented from pushing until you run `zapier pull` to update your local files with the latest version.
Any destructive file changes will prompt you with a confirmation dialog before continuing.
## Converting an Existing App
If you have an existing Zapier [legacy Web Builder app](https://platform.zapier.com/conversion/maintaining), you can use it as a template to kickstart your local application.
Expand Down
8 changes: 8 additions & 0 deletions packages/cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ This doc describes the latest CLI version (**15.17.0**), as of this writing. If
* [Private App Version (default)](#private-app-version-default)
* [Sharing an App Version](#sharing-an-app-version)
* [Promoting an App Version](#promoting-an-app-version)
* [Pulling Latest Version from Zapier](#pulling-latest-version-from-zapier)
- [Converting an Existing App](#converting-an-existing-app)
- [Authentication](#authentication)
* [Basic](#basic)
Expand Down Expand Up @@ -399,6 +400,7 @@ If you'd like to manage your **Version**, use these commands:
* `zapier deprecate 1.0.0 2020-06-01` - mark a version as deprecated, but let users continue to use it (we'll email them)
* `zapier env:set 1.0.0 KEY=VALUE` - set an environment variable to some value
* `zapier delete:version 1.0.0` - delete a version entirely. This is mostly for clearing out old test apps you used personally. It will fail if there are any users. You probably want `deprecate` instead.
* `zapier pull` - pull the latest version from Zapier server. This is used in the event that Zapier made an update since your last version.
> Note: To see the changes that were just pushed reflected in the browser, you have to manually refresh the browser each time you push.
Expand Down Expand Up @@ -439,6 +441,12 @@ zapier migrate 1.0.0 1.0.1
zapier deprecate 1.0.0 2020-06-01
```
### Pulling Latest Version from Zapier
Zapier may fix bugs or add new features to your integration and release a new version. If you attempt to use `zapier push` and we've released a newer version, you will be prevented from pushing until you run `zapier pull` to update your local files with the latest version.
Any destructive file changes will prompt you with a confirmation dialog before continuing.
## Converting an Existing App
If you have an existing Zapier [legacy Web Builder app](https://platform.zapier.com/conversion/maintaining), you can use it as a template to kickstart your local application.
Expand Down
27 changes: 27 additions & 0 deletions packages/cli/docs/cli.html
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,7 @@
<li><a href="#logs">logs</a></li>
<li><a href="#migrate">migrate</a></li>
<li><a href="#promote">promote</a></li>
<li><a href="#pull">pull</a></li>
<li><a href="#push">push</a></li>
<li><a href="#register">register</a></li>
<li><a href="#scaffold">scaffold</a></li>
Expand Down Expand Up @@ -1017,6 +1018,32 @@ <h2 id="promote">promote</h2>
</div>
</div>
</div><div class="row">
<div class="row-height">
<div class="col-md-5 col-sm-12 col-height docs-primary">
<h2 id="pull">pull</h2>
</div>
<div class="col-md-7 col-sm-12 col-height is-empty docs-code">

</div>
</div>
</div><div class="row">
<div class="row-height">
<div class="col-md-5 col-sm-12 col-height docs-primary">
<blockquote>
<p>Retrieve and update your local integration files with the latest version.</p>
</blockquote><p><strong>Usage</strong>: <code>zapier pull</code></p><p>This command updates your local integration files with the latest version. You will be prompted with a confirmation dialog before continuing if there any destructive file changes.</p><p>Zapier may release new versions of your integration with bug fixes or new features. In the event this occurs, you will be unable to do the following until your local files are updated by running <code>zapier pull</code>:</p><ul>
<li>push to the promoted version</li>
<li>promote a new version</li>
<li>migrate users from one version to another</li>
</ul><p><strong>Flags</strong></p><ul>
<li><code>-d, --debug</code> | Show extra debugging output.</li>
</ul>
</div>
<div class="col-md-7 col-sm-12 col-height is-empty docs-code">

</div>
</div>
</div><div class="row">
<div class="row-height">
<div class="col-md-5 col-sm-12 col-height docs-primary">
<h2 id="push">push</h2>
Expand Down
18 changes: 18 additions & 0 deletions packages/cli/docs/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -553,6 +553,24 @@ Check `zapier jobs` to track the status of the promotion. Or use `zapier history
* `zapier promote 1.0.0`


## pull

> Retrieve and update your local integration files with the latest version.
**Usage**: `zapier pull`

This command updates your local integration files with the latest version. You will be prompted with a confirmation dialog before continuing if there any destructive file changes.

Zapier may release new versions of your integration with bug fixes or new features. In the event this occurs, you will be unable to do the following until your local files are updated by running `zapier pull`:

* push to the promoted version
* promote a new version
* migrate users from one version to another

**Flags**
* `-d, --debug` | Show extra debugging output.


## push

> Build and upload the current integration.
Expand Down
21 changes: 21 additions & 0 deletions packages/cli/docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@
<li><a href="#private-app-version-default">Private App Version (default)</a></li>
<li><a href="#sharing-an-app-version">Sharing an App Version</a></li>
<li><a href="#promoting-an-app-version">Promoting an App Version</a></li>
<li><a href="#pulling-latest-version-from-zapier">Pulling Latest Version from Zapier</a></li>
</ul>
</li>
<li><a href="#converting-an-existing-app">Converting an Existing App</a></li>
Expand Down Expand Up @@ -474,6 +475,7 @@ <h2 id="table-of-contents">Table of Contents</h2>
<li><a href="#private-app-version-default">Private App Version (default)</a></li>
<li><a href="#sharing-an-app-version">Sharing an App Version</a></li>
<li><a href="#promoting-an-app-version">Promoting an App Version</a></li>
<li><a href="#pulling-latest-version-from-zapier">Pulling Latest Version from Zapier</a></li>
</ul>
</li>
<li><a href="#converting-an-existing-app">Converting an Existing App</a></li>
Expand Down Expand Up @@ -1058,6 +1060,7 @@ <h2 id="deploying-an-app-version">Deploying an App Version</h2>
<li><code>zapier deprecate 1.0.0 2020-06-01</code> - mark a version as deprecated, but let users continue to use it (we&apos;ll email them)</li>
<li><code>zapier env:set 1.0.0 KEY=VALUE</code> - set an environment variable to some value</li>
<li><code>zapier delete:version 1.0.0</code> - delete a version entirely. This is mostly for clearing out old test apps you used personally. It will fail if there are any users. You probably want <code>deprecate</code> instead.</li>
<li><code>zapier pull</code> - pull the latest version from Zapier server. This is used in the event that Zapier made an update since your last version.</li>
</ul><blockquote>
<p>Note: To see the changes that were just pushed reflected in the browser, you have to manually refresh the browser each time you push.</p>
</blockquote>
Expand Down Expand Up @@ -1143,6 +1146,24 @@ <h3 id="promoting-an-app-version">Promoting an App Version</h3>
</div>
</div>
</div><div class="row">
<div class="row-height">
<div class="col-md-5 col-sm-12 col-height docs-primary">
<h3 id="pulling-latest-version-from-zapier">Pulling Latest Version from Zapier</h3>
</div>
<div class="col-md-7 col-sm-12 col-height is-empty docs-code">

</div>
</div>
</div><div class="row">
<div class="row-height">
<div class="col-md-5 col-sm-12 col-height docs-primary">
<p>Zapier may fix bugs or add new features to your integration and release a new version. If you attempt to use <code>zapier push</code> and we&apos;ve released a newer version, you will be prevented from pushing until you run <code>zapier pull</code> to update your local files with the latest version.</p><p>Any destructive file changes will prompt you with a confirmation dialog before continuing.</p>
</div>
<div class="col-md-7 col-sm-12 col-height is-empty docs-code">

</div>
</div>
</div><div class="row">
<div class="row-height">
<div class="col-md-5 col-sm-12 col-height docs-primary">
<h2 id="converting-an-existing-app">Converting an Existing App</h2>
Expand Down
12 changes: 10 additions & 2 deletions packages/cli/src/oclif/commands/pull.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,16 @@ class PullCommand extends ZapierBaseCommand {
}

PullCommand.flags = buildFlags();
PullCommand.description =
'Pull the source code of the latest version of your integration from Zapier, overwriting your local integration files.';
PullCommand.description = `Retrieve and update your local integration files with the latest version.
This command updates your local integration files with the latest version. You will be prompted with a confirmation dialog before continuing if there any destructive file changes.
Zapier may release new versions of your integration with bug fixes or new features. In the event this occurs, you will be unable to do the following until your local files are updated by running \`zapier pull\`:
* push to the promoted version
* promote a new version
* migrate users from one version to another`;

PullCommand.skipValidInstallCheck = true;

module.exports = PullCommand;
1 change: 1 addition & 0 deletions packages/cli/src/oclif/oCommands.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ module.exports = {
logout: require('./commands/logout'),
migrate: require('./commands/migrate'),
promote: require('./commands/promote'),
pull: require('./commands/pull'),
push: require('./commands/push'),
scaffold: require('./commands/scaffold'),
register: require('./commands/register'),
Expand Down

0 comments on commit 51193ba

Please sign in to comment.