From 0a81e7ca16a55a681c200513d9877689ac8e6dfd Mon Sep 17 00:00:00 2001 From: Chang-Hung Liang Date: Thu, 10 Oct 2024 20:52:27 +0800 Subject: [PATCH] Update invoke help doc --- docs/cli.html | 2 +- docs/cli.md | 2 +- packages/cli/docs/cli.html | 2 +- packages/cli/docs/cli.md | 2 +- packages/cli/src/oclif/commands/invoke.js | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/cli.html b/docs/cli.html index 08004b0f5..392c64c39 100644 --- a/docs/cli.html +++ b/docs/cli.html @@ -745,7 +745,7 @@

invoke

Invoke an auth operation, a trigger, or a create/search action locally.

-

Usage: zapier invoke [ACTIONTYPE] [ACTIONKEY]

This command emulates how Zapier production environment would invoke your integration. It runs code locally, so you can use this command to quickly test your integration without deploying it to Zapier. This is especially useful for debugging and development.

This command loads environment variables and authData from the .env file in the current directory. If you don't have a .env file yet, you can use the zapier invoke auth start command to help you initialize it, or you can manually create it.

The zapier invoke auth start subcommand will prompt you for the necessary auth fields and save them to the .env file. For OAuth2, it will start a local HTTP server, open the browser, and wait for the OAuth2 redirect callback to get the access token.

Each line in the .env file should follow one of these formats: