# Command Line/Terminal Launch Project Client from MacOS terminal

**URL:** <https://forum.inductiveautomation.com/t/command-line-terminal-launch-project-client-from-macos-terminal/33875>\
**Category:** Ignition\
**Created:** [April 12, 2020, 6:03pm UTC](https://forum.inductiveautomation.com/t/command-line-terminal-launch-project-client-from-macos-terminal/33875 "2020-04-12T18:03:39Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![jespinmartin1](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jespinmartin1/32/57175_2.png) [@jespinmartin1](https://forum.inductiveautomation.com/u/jespinmartin1)\
**Post date:** [April 12, 2020, 6:03pm UTC](https://forum.inductiveautomation.com/t/command-line-terminal-launch-project-client-from-macos-terminal/33875/1 "2020-04-12T18:03:39Z")

</div>

V.8  
In [https://docs.inductiveautomation.com/display/DOC80/Vision+Client+Launcher](https://docs.inductiveautomation.com/display/DOC80/Vision+Client+Launcher) there’s a command line section where it describes the commands for Windows and Linux to launch projects from cmd/terminal. It’s pretty obvious that Linux command should work for MacOs terminal. However, it seems not to work because I can’t find the visionclientlauncher.sh anywhere on Mac. Please some help!

---

<div class="post-metadata">

**Author:** ![KathyApplebaum](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kathyapplebaum/32/7261_2.png) [@KathyApplebaum](https://forum.inductiveautomation.com/u/KathyApplebaum)\
**Post date:** [April 13, 2020, 2:19pm UTC](https://forum.inductiveautomation.com/t/command-line-terminal-launch-project-client-from-macos-terminal/33875/2 "2020-04-13T14:19:40Z")

</div>

Mine was installed in the Applications folder and is called “Client Launcher.app”

---

<div class="post-metadata">

**Author:** ![jcoffman](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jcoffman/32/6429_2.png) [@jcoffman](https://forum.inductiveautomation.com/u/jcoffman)\
**Post date:** [April 13, 2020, 2:56pm UTC](https://forum.inductiveautomation.com/t/command-line-terminal-launch-project-client-from-macos-terminal/33875/3 "2020-04-13T14:56:17Z")

</div>

MacOS can perform this using the open command as well: `open -a /Users/tester/Desktop/Vision\ Client\ Launcher.app --args -Dapplication=MY_APPLICATION`

---

<div class="post-metadata">

**Author:** ![jespinmartin1](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jespinmartin1/32/57175_2.png) [@jespinmartin1](https://forum.inductiveautomation.com/u/jespinmartin1)\
**Post date:** [April 13, 2020, 3:35pm UTC](https://forum.inductiveautomation.com/t/command-line-terminal-launch-project-client-from-macos-terminal/33875/4 "2020-04-13T15:35:25Z")

</div>

Great @jcoffman thanks, was this part of

> [@jcoffman](#):
>
> --args -

that I didn't realized how to use. In addition, I want to add some knowledge. If a project has a empty space between it's better to use \ and not %20 as suggests in docs.  
Thanks

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [April 13, 2020, 3:49pm UTC](https://forum.inductiveautomation.com/t/command-line-terminal-launch-project-client-from-macos-terminal/33875/5 "2020-04-13T15:49:05Z")

</div>

The launcher application should use `%20` - the `\` in JJ’s example is escaping the space in the filename (common to POSIX shells); `%20` is HTML-escaping the space for the parsing logic specific to Ignition.

---

<div class="post-metadata">

**Author:** ![jespinmartin1](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jespinmartin1/32/57175_2.png) [@jespinmartin1](https://forum.inductiveautomation.com/u/jespinmartin1)\
**Post date:** [April 13, 2020, 4:14pm UTC](https://forum.inductiveautomation.com/t/command-line-terminal-launch-project-client-from-macos-terminal/33875/6 "2020-04-13T16:14:43Z")

</div>

running for MacOS terminal the %20 didn’t work for me, instead \ did work

@paul-griffith or @jcoffman I need an advice, now I’m trying to run this command from system.util.execute in a button in a MacOS Client but I can’t make it work. For example, for Windows I need to call “cmd.exe” in Ubuntu there’s not need o call the terminal. How about MacOS?

---

<div class="post-metadata">

**Author:** ![jcoffman](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jcoffman/32/6429_2.png) [@jcoffman](https://forum.inductiveautomation.com/u/jcoffman)\
**Post date:** [April 13, 2020, 5:05pm UTC](https://forum.inductiveautomation.com/t/command-line-terminal-launch-project-client-from-macos-terminal/33875/7 "2020-04-13T17:05:23Z")

</div>

Well, you can do two things:

1. use the `open` command, though you will likely need to do some fancy calling from a bash script or something
2. call the bundled executable within the .app directly. like `...Launcher.app/Contents/MacOS/Vision\ Client\ Launcher -Dapplication=MY_APPLICATION`

---

<div class="post-metadata">

**Author:** ![jespinmartin1](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jespinmartin1/32/57175_2.png) [@jespinmartin1](https://forum.inductiveautomation.com/u/jespinmartin1)\
**Post date:** [April 13, 2020, 5:23pm UTC](https://forum.inductiveautomation.com/t/command-line-terminal-launch-project-client-from-macos-terminal/33875/8 "2020-04-13T17:23:23Z")

</div>

I understand your point sir, you’re right the %20 would be valid inside a Ignition function.  
The \ is valid within MacOS terminal.  
Is good to make that clarification

---

<div class="post-metadata">

**Author:** ![jespinmartin1](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jespinmartin1/32/57175_2.png) [@jespinmartin1](https://forum.inductiveautomation.com/u/jespinmartin1)\
**Post date:** [April 13, 2020, 6:09pm UTC](https://forum.inductiveautomation.com/t/command-line-terminal-launch-project-client-from-macos-terminal/33875/9 "2020-04-13T18:09:10Z")

</div>

For testing I will just try to launch Vision Client Launcher app first with no project specified  
I still don’t make it work. In a button script:

```auto
system.util.execute(['open -a /Applications/Vision\ Client\ Launcher.app'])

```

But in MacOS terminal  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/3/3f586651995bbaa5e019536f43e5fec18c577852.png)  
And it opens the app!!

For bundle execution:

```auto
system.util.execute(['/Applications/Vision\ Client\ Launcher.app/Contents/MacOS/Vision\ Client\ Launcher'])

```

also

```auto
system.util.execute(['/Applications/'+"Vision\\ Client\\ Launcher.app"+'/Contents/MacOS/'+"Vision\\ Client\\ Launcher"])

```

Even giving the full path:

```auto
system.util.execute(['/User/localhost/Application...

```

For all of those I have the

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/b/be36c55d28b07984ed9a3edef89e935689201f41.png)  
error

---

<div class="post-metadata">

**Author:** ![jcoffman](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jcoffman/32/6429_2.png) [@jcoffman](https://forum.inductiveautomation.com/u/jcoffman)\
**Post date:** [April 13, 2020, 6:25pm UTC](https://forum.inductiveautomation.com/t/command-line-terminal-launch-project-client-from-macos-terminal/33875/10 "2020-04-13T18:25:30Z")

</div>

try this?  
`system.util.execute(["/Applications/Vision Client Launcher.app/Contents/MacOS/Vision Client Launcher", "-Dapplication=MY_APPLICATION"])`

---

<div class="post-metadata">

**Author:** ![jespinmartin1](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jespinmartin1/32/57175_2.png) [@jespinmartin1](https://forum.inductiveautomation.com/u/jespinmartin1)\
**Post date:** [April 13, 2020, 6:33pm UTC](https://forum.inductiveautomation.com/t/command-line-terminal-launch-project-client-from-macos-terminal/33875/11 "2020-04-13T18:33:15Z")

</div>

Awesome, it worked…the problem was those \ , I should have tried that…  
Thanks @jcoffman
