Config File

Configuration files in general are files that define parameters and values for any software or codebase settings. In this case, Catalyst provides CLI commands that enable you to set and manage the location of Python downloaded in your local system, in a specific configuration file.

This particular configuration file is a hidden local file maintained in your system in varied locations, based on the OS installed in your system. It controls the operations of various utilities in your system. It also contains the configurations that allow the system to communicate effectively with the CLI.

Note: You can only set the Python path information in this configuration file for now. Catalyst currently does not support adding any other information in this file through the CLI.

Config CLI commands

Set a Key-Value Pair

You can add an entry to the config file in your local machine specifying the path of Python stored in your system, by providing the inputs in the form of a key-value pair. To do so, execute the command mentioned below from your system’s terminal:

copy
$
catalyst config:set

catalyst_cli_config

Note: Currently, you can only set the key as python3_9. This key stores your the Python path information in your system.

Get the value of a Specific Key

You can fetch the value of any specific key in this particular configuration file by executing the terminal command below:

copy
$
catalyst config:get <<"key">>

catalyst_cli_config

Note: Currently, you can only retrieve the Python path information from this file using this CLI command.

List Configurations

You can retrieve the list of all configurations (key-value pairs) that are present in the configuration file by executing the following command:

copy
$
catalyst config:list

catalyst_cli_config

Note: Currently, this CLI command only retrieves the configuration information of the Python path in your system.

Delete key

You can delete an entry in the configuration file by executing the CLI command mentioned below. You must specify the key name of the entry that you want to delete.

This will delete the key-value pair from the file.

copy
$
catalyst config:delete

catalyst_cli_config