Headless mode ############# Siril can both operate with its graphical user interface (GUI) and with a command line interface (CLI) that does not even require having a display. It can process images for other programs, on remote or embedded computers, using either scripts or real-time generated operations called commands. The capabilities of the headless Siril are in fact those of the :ref:`available commands `. There are more than a hundred, allowing preprocessing, processing and photometry analysis to be done automatically. Commands can also be used in the GUI version of Siril, either from the embedded command line at the bottom of the control panel, or with :ref:`scripts `. Scripts are simply a text file containing a list of commands. Reading the :ref:`scripts page ` is recommended before going further. With the headless version, commands can be executed either by passing a script to run, or by setting the standard input as a script and writing commands to it, with ``-s -`` command line option, or using some named pipes. Here's an example of bash code calling headless mode, which builds the master-bias and returns its noise to the console in red: .. code-block:: bash #!/bin/bash # bash commands to prepare files initdir=$(pwd) ######## Set your own variables ############# SCRIPTS_DIRECTORY=$initdir SIRIL_PATH=siril-cli ############################################# # Removing process folder if exists # rm -rf $SCRIPTS_DIRECTORY/process echo "Running siril bash script in $initdir" output=$($SIRIL_PATH -d $SCRIPTS_DIRECTORY -s - <