Skip to content

Commit

Permalink
docs: readme
Browse files Browse the repository at this point in the history
  • Loading branch information
evilsocket committed Oct 18, 2024
1 parent 0731a68 commit 64df898
Show file tree
Hide file tree
Showing 2 changed files with 69 additions and 4 deletions.
70 changes: 68 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,69 @@
# cli
Dreadnode command line interface.

## Installation

### With Poetry:

```bash
poetry install
```

Then enter the poetry shell:

```bash
poetry shell
```

### With Docker:

```bash
docker build -t dreadnode .
```

and then run:

```bash
docker run -it dreadnode --help
```

## Usage

Help menu:

```bash
dreadnode --help
```

Authenticate:

```bash
dreadnode login
```

Manage server profiles with:

```bash
# list all profiles
dreadnode profile list

# switch to a named profile
dreadnode profile switch <profile_name>

# remove a profile
dreadnode profile forget <profile_name>
```

Interact with the Crucible challenges:

```bash
# list all challenges
dreadnode challenge list

# download an artifact
dreadnode challenge artifact <challenge_id> <artifact_name> -o <output_path>

# submit a flag
dreadnode challenge submit-flag <challenge_id> 'gAAAAA...'
```


Dreadnode CLI
3 changes: 1 addition & 2 deletions dreadnode_cli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
from rich import print

from dreadnode_cli import api
from dreadnode_cli.agent import cli as agent_cli
from dreadnode_cli.challenge import cli as challenge_cli
from dreadnode_cli.config import ServerConfig, UserConfig
from dreadnode_cli.defaults import MAIN_PROFILE_NAME, PLATFORM_BASE_URL
Expand All @@ -16,7 +15,7 @@

cli.add_typer(profile_cli, name="profile", help="Manage server profiles")
cli.add_typer(challenge_cli, name="challenge", help="Crucible challenges")
cli.add_typer(agent_cli, name="agent", help="Manage agents")
# cli.add_typer(agent_cli, name="agent", help="Manage agents")


@cli.command(help="Authenticate to the platform.")
Expand Down

0 comments on commit 64df898

Please sign in to comment.