Skip to main content

cortex config

This command allows you to update server configurations such as CORS and Allowed Headers.

Usage

info

You can use the --verbose flag to display more detailed output of the internal processes. To apply this flag, use the following format: cortex --verbose [subcommand].


cortex config [options] [subcommand]

Options:

OptionDescriptionRequiredDefault valueExample
--corsToggle CORSNotrueon, off
--allowed_originsAllowed origins for CORSNohttp://localhost:39281, http://127.0.0.1:39281http://localhost:3000
-h, --helpDisplay help information for the command.No--h

Subcommands:

cortex config status

info

This CLI command calls the following API endpoint:

This command returns all server configurations.

Usage:


cortex config status

For example, it returns the following:


+-------------------------------------------------------------------------------------+
| Config name | Value |
+-------------------------------------------------------------------------------------+
| allowed_origins | http://localhost:39281 |
+-------------------------------------------------------------------------------------+
| allowed_origins | http://127.0.0.1:39281/ |
+-------------------------------------------------------------------------------------+
| cors | true |
+-------------------------------------------------------------------------------------+