Use Typora from Shell or Cmd



You could use open -a typora to open target markdown in Typora. If Typora is your default editor for .md file, when open would be enough.

You could also add

alias typora="open -a typora"

in your .bash_profile or other configuration file, then you would be able to do typora to open the markdown file from shell/terminal directly.


If Typora is set as the default markdown editor, then in cmd.exe, input .md file path directly would open target markdown file. For example: ./

You would also add {typora-installed-folder}/bin/typora.exe into system Path, then you would be able to use typora to open markdown file in Typora from command line. Usually, {typora-insatlled-folder} is C:\Program Files (x86)\Typora.


After install typora on Linux, user could run typora directly in terminal, for example:

typora ~/Document/