@@ -29,10 +29,12 @@ codegate serve [OPTIONS]
29
29
- Overrides configuration file and environment variables
30
30
31
31
- ` --log-level [ERROR|WARNING|INFO|DEBUG] ` : Set the log level (default: INFO)
32
+ - Optional
32
33
- Case-insensitive
33
34
- Overrides configuration file and environment variables
34
35
35
36
- ` --log-format [JSON|TEXT] ` : Set the log format (default: JSON)
37
+ - Optional
36
38
- Case-insensitive
37
39
- Overrides configuration file and environment variables
38
40
@@ -72,6 +74,10 @@ codegate serve [OPTIONS]
72
74
- ` --embedding-model TEXT ` : Name of the model used for embeddings
73
75
- Optional
74
76
77
+ - ` --db-path TEXT ` : Path to a SQLite DB. It will create one if it doesn't exist. (default: ./codegate_volume/db/codegate.db)
78
+ - Optional
79
+ - Overrides configuration file and environment variables
80
+
75
81
### show-prompts
76
82
77
83
Display the loaded system prompts:
@@ -87,6 +93,46 @@ codegate show-prompts [OPTIONS]
87
93
- Must be a valid YAML file
88
94
- If not provided, shows default prompts from prompts/default.yaml
89
95
96
+ ### generate_certs
97
+
98
+ Generate certificates for the CodeGate server.
99
+
100
+ ``` bash
101
+ codegate generate-certs [OPTIONS]
102
+ ```
103
+
104
+ #### Options
105
+
106
+ - ` --certs-out-dir PATH ` : Directory path where the certificates are going to be generated. (default: ./codegate_volume/certs)
107
+ - Optional
108
+ - Overrides configuration file and environment variables
109
+
110
+ - ` --ca-cert-name TEXT ` : Name that will be given to the created CA certificate. (default: ca.crt)
111
+ - Optional
112
+ - Overrides configuration file and environment variables
113
+
114
+ - ` --ca-key-name TEXT ` : Name that will be given to the created CA key. (default: ca.key)
115
+ - Optional
116
+ - Overrides configuration file and environment variables
117
+
118
+ - ` --server-cert-name TEXT ` : Name that will be given to the created server certificate. (default: server.crt)
119
+ - Optional
120
+ - Overrides configuration file and environment variables
121
+
122
+ - ` --server-key-name TEXT ` : Name that will be given to the created server key. (default: server.key)
123
+ - Optional
124
+ - Overrides configuration file and environment variables
125
+
126
+ - ` --log-level [ERROR|WARNING|INFO|DEBUG] ` : Set the log level (default: INFO)
127
+ - Optional
128
+ - Case-insensitive
129
+ - Overrides configuration file and environment variables
130
+
131
+ - ` --log-format [JSON|TEXT] ` : Set the log format (default: JSON)
132
+ - Optional
133
+ - Case-insensitive
134
+ - Overrides configuration file and environment variables
135
+
90
136
## Error Handling
91
137
92
138
The CLI provides user-friendly error messages for:
@@ -144,3 +190,9 @@ codegate show-prompts
144
190
Show prompts from a custom file:
145
191
``` bash
146
192
codegate show-prompts --prompts my-prompts.yaml
193
+ ```
194
+
195
+ Generate certificates with default settings:
196
+ ``` bash
197
+ codegate generate-certs
198
+ ```
0 commit comments