Skip to content

CLI Commands, Controls, etc.

Anivice Ives edited this page Jul 4, 2026 · 11 revisions

CLI Commands, Controls, etc.

Misc

  • help : Show this help message
  • quit : Quit the program
  • exit : Quit the program
  • closeConnections : Close all connections
  • reset : Reset terminal mode
  • apply : Apply JSON config to backend
  • ccdbrc : Print an example version of the ~/.ccdbrc

get

The get command is used to get info from the backend or the CCDB internal state.

Misc

  • get proxy: get a proxy list from the backend. This will refresh CCDB's internal proxy list. The proxy list is updated when CCDB launches.
  • get mode: get proxy mode. This can be direct, rule, or global.
  • get vecGroupProxy: get proxy list from the backend with numeric indexes. This will refresh CCDB's internal proxy list and corresponding indexes. Indexes are updated when CCDB launches.
  • get config: get JSON config from the backend. The JSON output is parsed using jq when jq can be executed from /bin/sh
  • get loglevel: get backend log level. This can be debug, info, warning, or error.

Connections

  • get connections: This will launch a TUI window that constantly pulls active connections from the backend, as shown in image 1-1, as follows. Image 1-1 Related traffic info is redacted in image 1-1. Color scheme can be changed or defined via external scripting. For more information, see the ~/.ccdbrc Configuration File section of the wiki.

  • get connections shot: Instead of pulling a continuously updated table, CCDB will pull the info from the backend once, and never refresh.

  • get connections hide [numeric...]: Hide specific columns of the table. Syntax for [numeric] is: [Number],[Number],[Range Start]-[Range End]. E.g.: get connections hide 1-3,4,6,7-9,11. This will hide column 1, 2, 3, 4, 6, 7, 8, 9, 11. get connections has 11 columns in total.

Clone this wiki locally