Skip to main content
Best answer

Issues running zapier env commands

  • December 3, 2019
  • 2 replies
  • 2306 views

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


Best answer by ikbelkirasan

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
Did this topic help you find an answer to your question?
This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

2 replies

ikbelkirasan
Forum|alt.badge.img+12
  • Zapier Expert
  • 555 replies
  • Answer
  • December 3, 2019

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.



thank you for your help