51

This is a kinda silly question. I've installed Inkscape on my mac (Marvericks OS) following this page http://www.inkscape.org/en/download/mac-os/

I know there is a command line option with inkscape. I tried to type inkscape on Terminal and there is no such command. I'm confused... Does this mean that I need to install the linux version of inkscape in order to use the command line?

3 Answers 3

69

I have Inkscape installed in /Applications and running this from a terminal does the trick:

/Applications/Inkscape.app/Contents/MacOS/inkscape --help

Usage: inkscape-bin [OPTIONS...] [FILE...]

Available options:
  -V, --version                             Print the Inkscape version number

... etc.

For ease of use symlink it to /usr/local/bin i.e.:

ln -s /Applications/Inkscape.app/Contents/MacOS/inkscape \
      /usr/local/bin/inkscape

In general, on MacOS Inkscape needs to be called with an absolute path, and all files given as arguments should also be full paths. See also:

https://bugs.launchpad.net/inkscape/+bug/1449251

7
  • I've tried this and it opened up the program... not something i want to do.
    – olala
    Feb 28, 2014 at 2:53
  • This worked! But there are a lot error messages with other things. Another question, do I need to put this path in PATH to be able to invoke inkscape directly?
    – olala
    Feb 28, 2014 at 4:15
  • 2
    You can add a shortcut to the normal location for such things. ln -s /Applications/Inkscape.app/Contents/Resources/bin/inkscape /usr/local/bin/inkscape This creates a symbolic link for inkscape to a folder already in the standard path
    – Scott
    Apr 9, 2015 at 23:44
  • 1
    inkscape-bin didn't work for me. then i found wiki.inkscape.org/wiki/index.php/MacOS_X, which says that an alias should be used alias inkscape="/Applications/Inkscape.app/Contents/Resources/bin/inkscape"
    – Adam
    Jul 28, 2016 at 12:22
  • 8
    As of 2020, the location on the command line app is now /Applications/Inkscape.app/Contents/MacOS/inkscape.
    – Stan James
    Feb 5, 2020 at 3:24
38

As of 2020, the executable on MacOS is now located at

/Applications/Inkscape.app/Contents/MacOS/inkscape

You can symlink it with:

ln -s /Applications/Inkscape.app/Contents/MacOS/inkscape \
  /usr/local/bin/inkscape

More info about command line usage here.

2
  • 1
    When I create this symlink then try to use it I get the following error: /usr/local/bin/inkscape: line 196: /usr/Contents/MacOS/inkscape-bin: No such file or directory /usr/local/bin/inkscape: line 196: exec: /usr/Contents/MacOS/inkscape-bin: cannot execute: No such file or directory Any ideas?
    – colmjude
    May 7, 2020 at 9:30
  • @colmjude don't type the "\" backslash in the command line.
    – GeneCode
    Aug 20, 2020 at 7:30
3

I think some paths and filenames have changed over time and today you should add a symlink in /usr/local/bin to point to the bin directory of inkscape:

sudo ln -s /Applications/Inkscape.app/Contents/Resources/bin/inkscape /usr/local/bin/inkscape

Full credit to @Scott above who has this correct "answer" showing as a comment. This solution allows other subcommands of inkscape to work correctly, whereas creating an alias does not.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.