@@ -54,7 +54,7 @@ where each line of the file is interpreted as a command.
5454If you wish to do this, you may also want to use the ` --no-prompt ` flag to prevent the program from writing stuff like "codedx>" to ` STDOUT ` .
5555
5656``` text
57- $> ./codedx-client -b https://localhost/codedx --api-key 8e218b38-fcdd-453d-8f78-185f7d1d9fa7 --no-prompt < ./my-commands.txt
57+ $> ./codedx-client https://localhost/codedx --api-key 8e218b38-fcdd-453d-8f78-185f7d1d9fa7 --no-prompt < ./my-commands.txt
5858```
5959
6060## About REPL Mode
@@ -75,6 +75,26 @@ Note that you can usually get around needing to escape anything by being clever:
7575If you see an error message like "The filename, directory name, or volume label syntax is incorrect.",
7676you likely used backslashes (` \ ` ) without escaping them (` \\ ` ) inside a quoted argument.
7777
78+ ## Arguments and Options
79+
80+ ``` text
81+ $> ./codedx-client <BASE URL> [OPTIONS] [<command...>]
82+ ```
83+
84+ - ` BASE URL ` The "base" URL where you can browser to Code Dx, e.g. ` https://localhost/codedx `
85+ - ` -u, --usename <USERNAME> ` Specify the username you want to use (basic auth).
86+ With ` -u ` , you don't actually need the space, i.e. ` -u johndoe ` is the same as ` -ujohndoe ` .
87+ - ` -p, --password <PASSWORD> ` Specify the password you want to use (basic auth).
88+ With ` -p ` , you don't actually need the space, i.e. ` -p supersecret ` is the same as ` -psupersecret ` .
89+ A password is required if you choose to authenticate with basic auth, but you can omit it here
90+ to make the program prompt for your password later.
91+ - ` -k, --api-key <KEY> ` Specify an API Key to use for authentication, instead of username+password.
92+ - ` --insecure ` If provided, ` https ` requests will ignore certificate hostname validation.
93+ This option * does not* disable the certificate trust chain; your system still needs to trust
94+ Code Dx's SSL certificate.
95+ - ` --no-prompt ` If provided, the program will avoid writing prompts like ` codedx> ` to ` STDOUT ` .
96+ This option is helpful if you want to parse the output of the application.
97+
7898# Command: ` analyze `
7999
80100The ` analyze ` command sends one or more files to one of your Code Dx projects to be analyzed.
0 commit comments