Problems accessing the environment (forge-environment) from the OSX command line

I follow the Trigger.io Forge tutorials and I cannot work normally with the command line in OSX 10.8.

Using Forge terminals and tutorials, I go to the forge workspace folder and type it into the terminal:

$HOME/Library/Trigger\ Toolkit/forge create 

and return this:

 Matts-MacBook-Pro:forge-workspace mattm$ $HOME/Library/Trigger\ Toolkit/forge create [ INFO] Forge tools running at version 3.3.17 [ INFO] Update result: you already have the latest tools This name is what your application will be called on devices. You can change it later through config.json. App Name: Weather App [ INFO] Registering new app "Weather App" with trigger.io... [ INFO] Fetching initial project template [ INFO] Building app for the first time... [ INFO] Update result: you already have the latest tools [ INFO] App structure created. To proceed: [ INFO] 1) Put your code in the "src" folder [ INFO] 2) Run forge build to make a build [ INFO] 3) Run forge run to test out your build Matts-MacBook-Pro:forge-workspace mattm$ 

The textbook says:

At this point, you should open a command terminal that looks something like this:

 (forge-environment) 

But this does not occur. Also, when I look in my library directory (and search all over the country), I don’t see any folders labeled Trigger.

And when I try to follow the tutorial and do things like use the create forge command, nothing happens:

 Matts-MacBook-Pro:hello-world mattm$ forge create</p> -bash: forge: command not found Matts-MacBook-Pro:hello-world mattm$ $forge create</p> -bash: create: command not found 

Before asking, yes, I installed Python and can create and run the application using the Forge browser interface.

Any idea what I am missing?

+6
source share
2 answers

On Mac OS X, add the following to your bash profile

 export PATH=$PATH:/Applications/TriggerToolkit.app/Contents/MacOS/ 
+10
source

I added an update to the Getting Started Docs to clarify this: http://docs.trigger.io/en/v1.4/getting-started.html#getting-started-with-the-command-line-tools

No more searching for "(forge-environment)". If you add the path to the forge executable to your PATH, then you can run the commands as you tried.

+2
source

Source: https://habr.com/ru/post/926712/


All Articles