Skip to content

verdict profile add

Save an instance connection without changing the selected profile

Runs locally. Effects: write stored profile and credential.

ArgumentTypeRequiredDefaultDescription
<name>positionalyesNo parser defaultProfile name
--endpointstringnoNo parser defaultInstance base URL, including any subpath (env: VERDICT_HOST, fallback: http://localhost:4891)
--hoststringnoNo parser defaultAlias for —endpoint
--authbooleannotruePrompt for an API key; —no-auth saves an unauthenticated endpoint
--api-key-stdinbooleannofalseRead the API key from standard input
--forcebooleannofalseReplace an existing profile and credential
--jsonbooleannofalseOutput as JSON

--help (-h) shows command help without executing the command. Boolean flags support --no-<flag>. Defaults stated in descriptions may be resolved by the handler or configuration rather than the argument parser.

Profile name and connection flags. —endpoint or —host is required. Read an API key with —api-key-stdin or the interactive prompt; —api-key-stdin cannot be combined with —no-auth.

File input: unsupported. Standard input: supported.

  • With —json, use —api-key-stdin or —no-auth.
{
"kind": "json-schema",
"schema": {
"type": "object",
"required": [
"completed",
"warnings"
],
"additionalProperties": false,
"properties": {
"completed": {
"type": "boolean"
},
"name": {
"type": "string",
"nullable": true
},
"target": {
"type": "string",
"enum": [
"global",
"project"
],
"nullable": true
},
"warnings": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
}

By default, the command renders human-readable records. --json writes one JSON result to stdout. Operational failures use status 1; JSON failures contain an error object with code and message. See shared output semantics.

  • 0: the command completed its operation.

Argument, I/O, and other failures handled by the CLI runner use status 1.

verdict profile add development --endpoint http://localhost:4891 --no-auth --json