.. _specifying-command-options-in-a-codeql-configuration-file: Specifying command options in a CodeQL configuration file ========================================================= You can save default or frequently used options for your commands in a per-user configuration file. You can specify CodeQL CLI command options in two ways: - Directly in the command line, using the appropriate flag. - In a configuration (or ``config``) file that CodeQL scans for relevant options each time a command is executed. For options that are likely to change each time you execute a command, specifying the value on the command line is the most convenient way of passing the information to CodeQL. Saving options in a ``config`` file is a good way to specify options you use frequently. It's also a good way to add custom QL packs that you use regularly to your search path. Using a CodeQL configuration file --------------------------------- You need to save the ``config`` file under your home (Linux and macOS) or user profile (Windows) directory in the ``.config/codeql/`` subdirectory. For example, ``$HOME/.config/codeql/config``. The syntax for specifying options is as follows::