The Ansel binary starts Ansel with its GUI and full functionality. This is the standard way to use Ansel.

Ansel can called with the following command line parameters:

 1Ansel [-d {all,act_on,cache,camctl,camsupport,control,demosaic,
 2               dev,fswatch,imageio,input,ioporder,lighttable,lua,
 3               masks,memory,nan,opencl,params,perf,print,pwstorage,
 4               signal,sql,tiling,undo,verbose}]
 5          [<input file>|<image folder>]
 6          [--version]
 7          [--disable-opencl]
 8          [--library <library file>]
 9          [--datadir <data directory>]
10          [--moduledir <module directory>]
11          [--tmpdir <tmp directory>]
12          [--configdir <user config directory>]
13          [--cachedir <user cache directory>]
14          [--localedir <locale directory>]
15          [--luacmd <lua command>]
16          [--noiseprofiles <noiseprofiles json file>]
17          [--d-signal <signal>]
18          [--d-signal-act <all,raise,connect,disconnect,print-trace>]
19          [--conf <key>=<value>]
20          [-t <num openmp threads>]

All parameters are optional. In most cases Ansel should be started without any additional parameters, in which case Ansel uses suitable defaults.

-d {all,act_on,cache,camctl,camsupport,control,demosaic,dev,fswatch,imageio,input,ioporder,lighttable,lua,masks,memory,nan,opencl,params,perf,print,pwstorage,signal,sql,tiling,undo,verbose}
Enable debug output to the terminal. There are several subsystems of Ansel and each of them can be debugged separately. You can use this option multiple times if you want to debug more than one subsystem (e.g. Ansel -d opencl -d camctl) or debug all of them at once (with -d all). Some debug options (like -d opencl) can also provide more verbose output, which can be invoked with the additional option -d verbose. The verbose option must be explicitly provided, even when using -d all.
--d-signal <signal>
If -d signal or -d all is specified, specify the signal to debug using this option. Specify ALL to debug all signals or specify signal using it’s full name. Can be used multiple times.
--d-signal-act <all,raise,connect,disconnect,print-trace>
If -d signal or -d all is specified, specify the signal action to debug using this option.
<input file>|<image folder>
Optionally supply the name of an image file or folder. If a filename is given Ansel starts in darkroom view with that file opened. If a folder is given Ansel starts in lighttable view with the content of that folder as the current collection.
Print the Ansel version number, a copyright notice, some other useful information, and then terminate.
Prevent Ansel from initializing the OpenCL subsystem. Use this option if Ansel crashes at startup due to a defective OpenCL implementation.
--library <library file>
Ansel keeps image information in an sqlite database for fast access. The default location of that database file is $HOME/.config/Ansel/library.db. Use this option to provide an alternative location (e.g. if you want to do some experiments without compromising your original library.db). If the database file does not exist, Ansel creates it for you. You may also provide :memory: as the library file, in which case the database is kept in system memory – all changes are discarded when Ansel terminates.

Whenever Ansel starts, it will lock the library to the current user. It does this by writing the current process identifier (PID) into a lock file <library file>.lock next to the library specified. If Ansel finds an existing lock file for the library, it will terminate immediately.

--datadir <data directory>
Define the directory where Ansel finds its runtime data. The default location depends on your installation. Typical locations are /opt/Ansel/share/Ansel/ and /usr/share/Ansel/.
--moduledir <module directory>
Ansel has a modular structure and organizes its modules as shared libraries for loading at runtime. This option tells Ansel where to look for its shared libraries. The default location depends on your installation. Typical locations are /opt/Ansel/lib64/Ansel/ and /usr/lib64/Ansel/.
--tmpdir <tmp directory>
Define where Ansel should store its temporary files. If this option is not supplied Ansel uses the system default.
--configdir <config directory>
Define the directory where Ansel stores user-specific configuration. The default location is $HOME/.config/Ansel/.
--cachedir <cache directory>
Ansel keeps a cache of image thumbnails for fast image preview and precompiled OpenCL binaries for fast startup. By default the cache is located in $HOME/.cache/Ansel/. Multiple thumbnail caches may exist in parallel – one for each library file.
--localedir <locale directory>
Define where Ansel can find its language-specific text strings. The default location depends on your installation. Typical locations are /opt/Ansel/share/locale/ and /usr/share/locale/.
--luacmd <lua command>
A string containing lua commands to execute after lua initialization. These commands will be run after your “luarc” file.
If lua is not compiled-in, this option will be accepted but won’t do anything.
--noiseprofiles <noiseprofiles json file>
Provide a json file that contains camera-specific noise profiles. The default location depends on your installation. Typical locations are /opt/Ansel/share/Ansel/noiseprofile.json and /usr/share/Ansel/noiseprofile.json.
--conf <key>=<value>
Ansel supports a rich set of configuration parameters defined by the user in $HOME/.config/Ansel/Anselrc. You may temporarily overwrite individual settings on the command line with this option – these settings will not be stored in Anselrc on exit.
-t <num openmp threads>
limit number of openmp threads to use in openmp parallel sections