title: How to install a Mac application using Terminal
body: <p>Apple suggests that prior to submitting to the Mac application store, the installation process for Macs be tested using the command</p>
  
  <pre><code>sudo installer -store -pkg path-to-package -target /
  </code></pre>
  
  <p>I saved the application package to the desktop and then in the terminal I sent the command</p>
  
  <pre><code>sudo installer -store -pkg /User/MyName/Desktop/helloWorld.pkg -target /
  </code></pre>
  
  <p>From the above command I get this </p>
  
  <pre><code>installer: invalid option -
  Usage: installer [-help] [-dominfo] [-volinfo] [-pkginfo] [-allow] [-dumplog]
                   [-verbose | -verboseR] [-vers] [-config] [-plist]
                   [-file &lt;pathToFile&gt;] [-lang &lt;ISOLanguageCode&gt;] [-listiso]
                   [-showChoicesXML] [-applyChoiceChangesXML &lt;pathToFile&gt;]
                   [-showChoicesAfterApplyingChangesXML &lt;pathtoFile&gt;]
                   -pkg &lt;pathToPackage&gt;
                   -target &lt;[DomainKey|MountPoint|DiskIdentifier|DeviceNode|UUID]&gt;
  </code></pre>
  
  <p>I am very new to the <a href="http://en.wikipedia.org/wiki/Apple_Terminal" rel="noreferrer">Terminal</a>. What does this mean and how do I fix it so that I can install the application as suggested by Apple?</p>