question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Mac installer doesn't install a CLI

See original GitHub issue

I’m opening this issue to discuss solutions to install Orca as a CLI in Mac.


At the moment, electron-builder creates a DMG installer for Orca in Mac. This DMG installer is actually a disk image. And, in our case, it contains the app bundle Plotly Orca.app.

My understanding is that when a user double-clicks a .dmg file, Mac mounts this disk image and prompts the user to drag the disk image onto the Applications folder.

This means Orca is installed on /Applications/Plotly Orca.app.

To invoke Orca from the command line, we could use open:

open -a "/Applications/Plotly Orca.app" [--args arg1 ...]

This is rather cumbersome. We could simplify things by moving open -a "/Applications/Plotly Orca.app" [--args arg1 ...] into a script (e.g. /usr/local/bin/plotly-orca). I’ve found two ways to do this:


Could any of the mac users confirm that open -a "/Applications/Plotly Orca.app" [--args arg1 ...] works, please?


@JamesCropcho @etpinard @jackparmer what do you think about these options?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:12 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
etpinardcommented, May 15, 2018

yeah // eslint-disable-next-line doesn’t work for me either.

Would putting the rest of orca_electron.js in an else be equivalent?

1reaction
etpinardcommented, May 4, 2018

create /usr/local/bin/plotly-orca on first install (see here)

This sounds 👌 to me.


FYI, post https://github.com/plotly/orca/pull/88/commits/a44fc2f8670f17ed31c6e810da624debddf07605, the .app file should be named orca.app instead of Plotly Orca.app.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Problem installing Command Line Tools for Mojave
You can download the installer package from <https://developer.apple.com/download/more/> and install it that way. ... I am having the same issue and cannot figure ......
Read more >
What To Do When Xcode CLI Tools Won't Install - Tom McFarlin
When the Xcode command line tools won't install, here's how you can download a disk image from Apple rather than use the command...
Read more >
how to install the CLI · Issue #1453 · docker/for-mac - GitHub
Expected behavior when I install docker for mac, I expect the CLI to be available Actual behavior CLI is not available resetting to...
Read more >
Installing the CLI on a Mac after getting "malicious software ...
When I tried to install Domino CLI on my Mac, I get following message - "“Domino Installer” can't be opened because Apple cannot......
Read more >
How to Install Command Line Tools in Mac OS X (Without ...
Confirm installation of command line tools on Mac OS X. Wait for the Command Line Tools ... Troubleshooting “not currently available” error.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found