# Opening files from a Command Line using yate-cli

Yate provides a command line utility named yate-cli which can be used to load files into Yate. Due to different behaviours in various versions of the OS, you must copy the utility first. In order to do so select the following menu item:

> Yate>Setup>Copy yate-cli.

Once copied, yate-cli can be run in the terminal application in order to load files. The following commands are available:

yate-cli -f file or folder
  An audio file will be loaded into Yate's main window. Note that what gets loaded depends on the current Open Mode. A folder will be opened as if dragged to Yate's main window. Again, what gets loaded depends on the current Open Mode. An image file will be opened in the Artwork Viewer. JSON and plist files will be opened in the Container Viewer.
yate-cli {-d #} -av file
  This form is used when you want to always open an audio file or image file in the Artwork Viewer. When an audio file is specified it's default artwork item (if any) will be displayed.
  This method must manually start Yate if it is not already running. A delay is required after detecting that Yate has been started. The default delay is one second. If you find that Yate is starting but that nothing is displayed in the Artwork Viewer. You can specify a larger delay after the -d option. For example -d 2.