Skip to content

Commit 18a69f1

Browse files
authored
Merge pull request #34 from dreadnode/nick/docs-structure
chore: Docs Updates
2 parents 0d085fe + fa18e55 commit 18a69f1

File tree

2 files changed

+96
-11
lines changed

2 files changed

+96
-11
lines changed

.pre-commit-config.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,15 @@ repos:
1212
hooks:
1313
- id: actionlint
1414
name: Check Github Actions
15+
16+
- repo: local
17+
hooks:
18+
19+
# Generate CLI docs
20+
- id: generate-cli-docs
21+
name: Generate CLI Documentation
22+
entry: poetry run typer dreadnode_cli/__main__.py utils docs --name dreadnode --output CLI.md --title "CLI Commands"
23+
language: system
24+
pass_filenames: false
25+
files: ^dreadnode_cli/.*\.py$
26+
always_run: true

CLI.md

Lines changed: 84 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# `dreadnode`
1+
# CLI Commands
22

33
Interact with the Dreadnode platform
44

@@ -10,15 +10,14 @@ $ dreadnode [OPTIONS] COMMAND [ARGS]...
1010

1111
**Options**:
1212

13-
* `--install-completion`: Install completion for the current shell.
14-
* `--show-completion`: Show completion for the current shell, to copy it or customize the installation.
1513
* `--help`: Show this message and exit.
1614

1715
**Commands**:
1816

1917
* `agent`: Interact with Strike agents
2018
* `challenge`: Interact with Crucible challenges
2119
* `login`: Authenticate to the platform.
20+
* `model`: Manage user-defined inference models
2221
* `profile`: Manage server profiles
2322
* `refresh`: Refresh data for the active server profile.
2423
* `version`: Show versions and exit.
@@ -50,7 +49,7 @@ $ dreadnode agent [OPTIONS] COMMAND [ARGS]...
5049
* `show`: Show the status of the active agent
5150
* `strikes`: List available strikes
5251
* `switch`: Switch to a different agent link
53-
* `templates`: Interact with Strike templates
52+
* `templates`: Manage Agent templates
5453
* `versions`: List historical versions of the active agent
5554

5655
### `dreadnode agent clone`
@@ -256,7 +255,7 @@ $ dreadnode agent switch [OPTIONS] AGENT_OR_PROFILE [DIRECTORY]
256255

257256
### `dreadnode agent templates`
258257

259-
Interact with Strike templates
258+
Manage Agent templates
260259

261260
**Usage**:
262261

@@ -271,7 +270,7 @@ $ dreadnode agent templates [OPTIONS] COMMAND [ARGS]...
271270
**Commands**:
272271

273272
* `install`: Install a template pack
274-
* `show`: List available agent templates with their...
273+
* `show|list`: List available agent templates with their...
275274

276275
#### `dreadnode agent templates install`
277276

@@ -291,14 +290,14 @@ $ dreadnode agent templates install [OPTIONS] [SOURCE]
291290

292291
* `--help`: Show this message and exit.
293292

294-
#### `dreadnode agent templates show`
293+
#### `dreadnode agent templates show|list`
295294

296295
List available agent templates with their descriptions
297296

298297
**Usage**:
299298

300299
```console
301-
$ dreadnode agent templates show [OPTIONS]
300+
$ dreadnode agent templates show|list [OPTIONS]
302301
```
303302

304303
**Options**:
@@ -414,6 +413,80 @@ $ dreadnode login [OPTIONS]
414413
* `-p, --profile TEXT`: Profile alias to assign / update
415414
* `--help`: Show this message and exit.
416415

416+
## `dreadnode model`
417+
418+
Manage user-defined inference models
419+
420+
**Usage**:
421+
422+
```console
423+
$ dreadnode model [OPTIONS] COMMAND [ARGS]...
424+
```
425+
426+
**Options**:
427+
428+
* `--help`: Show this message and exit.
429+
430+
**Commands**:
431+
432+
* `add`: Add a new inference model
433+
* `forget`: Remove an user inference model
434+
* `show|list`: List all configured models
435+
436+
### `dreadnode model add`
437+
438+
Add a new inference model
439+
440+
**Usage**:
441+
442+
```console
443+
$ dreadnode model add [OPTIONS]
444+
```
445+
446+
**Options**:
447+
448+
* `--id TEXT`: Identifier for referencing this model [required]
449+
* `-g, --generator-id TEXT`: Rigging (LiteLLM) generator id [required]
450+
* `-k, --api-key TEXT`: API key for the inference provider (supports $ENV_VAR syntax) [required]
451+
* `-n, --name TEXT`: Friendly name
452+
* `-p, --provider TEXT`: Provider name
453+
* `-u, --update`: Update an existing model if it exists
454+
* `--help`: Show this message and exit.
455+
456+
If $ENV_VAR syntax is used for the api key, it will be replaced with the environment value when used.
457+
458+
### `dreadnode model forget`
459+
460+
Remove an user inference model
461+
462+
**Usage**:
463+
464+
```console
465+
$ dreadnode model forget [OPTIONS] ID
466+
```
467+
468+
**Arguments**:
469+
470+
* `ID`: Model to remove [required]
471+
472+
**Options**:
473+
474+
* `--help`: Show this message and exit.
475+
476+
### `dreadnode model show|list`
477+
478+
List all configured models
479+
480+
**Usage**:
481+
482+
```console
483+
$ dreadnode model show|list [OPTIONS]
484+
```
485+
486+
**Options**:
487+
488+
* `--help`: Show this message and exit.
489+
417490
## `dreadnode profile`
418491

419492
Manage server profiles
@@ -431,7 +504,7 @@ $ dreadnode profile [OPTIONS] COMMAND [ARGS]...
431504
**Commands**:
432505

433506
* `forget`: Remove a server profile
434-
* `list`: List all server profiles
507+
* `show|list`: List all server profiles
435508
* `switch`: Set the active server profile
436509

437510
### `dreadnode profile forget`
@@ -452,14 +525,14 @@ $ dreadnode profile forget [OPTIONS] PROFILE
452525

453526
* `--help`: Show this message and exit.
454527

455-
### `dreadnode profile list`
528+
### `dreadnode profile show|list`
456529

457530
List all server profiles
458531

459532
**Usage**:
460533

461534
```console
462-
$ dreadnode profile list [OPTIONS]
535+
$ dreadnode profile show|list [OPTIONS]
463536
```
464537

465538
**Options**:

0 commit comments

Comments
 (0)