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]
.
- MacOs/Linux
- Windows
cortex config [options] [subcommand]
cortex.exe config [options] [subcommand]
Options:
Option | Description | Required | Default value | Example |
---|---|---|---|---|
--cors | Toggle CORS | No | true | on , off |
--allowed_origins | Allowed origins for CORS | No | http://localhost:39281 , http://127.0.0.1:39281 | http://localhost:3000 |
-h , --help | Display 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:
- MacOs/Linux
- Windows
cortex config status
cortex.exe 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 |+-------------------------------------------------------------------------------------+