Best answer

Issues running zapier env commands

  • 3 December 2019
  • 2 replies
  • 2166 views

Userlevel 2

Hello

Please i am new to Zapier and i trying to run the training using the OAuth2 template

But i am running into this issue running zapier env 1.0.0.

image.pngthis doesn't seem right...Please will appreciate any guide to get past this line of commands


icon

Best answer by ikbelkirasan 3 December 2019, 12:27

Hi @XlevelRetail - It seems like you're using the latest version of zapier-platform-cli in which the syntax to set environment variables has changed a little bit.

To set a variable try doing it this way:

zapier env:set 1.0.0 CLIENT_ID "your_oauth2_client_id"

zapier env:set 1.0.0 CLIENT_SECRET "your_oauth2_client_secret"

  • 1.0.0 is the version number, change it to the current version of your app.


View original

This topic has been closed for comments

2 replies

Userlevel 7
Badge +11

Hi @XlevelRetail - It seems like you're using the latest version of zapier-platform-cli in which the syntax to set environment variables has changed a little bit.

To set a variable try doing it this way:

zapier env:set 1.0.0 CLIENT_ID "your_oauth2_client_id"

zapier env:set 1.0.0 CLIENT_SECRET "your_oauth2_client_secret"

  • 1.0.0 is the version number, change it to the current version of your app.


Userlevel 2

thank you for your help