Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Credentials are written atomically with `0600` permissions to a platform-appropr

| Priority | Method | Example |
|----------|-------------|----------------------------------------------------------|
| 1 | Env vars | `JUDGMENT_API_KEY`, `JUDGMENT_ORG_ID`, `JUDGMENT_BASE_URL`, `JUDGMENT_AUTH_URL` |
| 1 | Env vars | `JUDGMENT_API_KEY`, `JUDGMENT_ORG_ID`, `JUDGMENT_PROJECT_ID`, `JUDGMENT_BASE_URL`, `JUDGMENT_AUTH_URL` |
| 2 | Config file | `judgment login` |

```bash
Expand Down Expand Up @@ -87,11 +87,23 @@ judgment completion fish > ~/.config/fish/completions/judgment.fish

Run `judgment --help` for the full command list, and `judgment <group> <command> --help` for the flags on a specific command.

Select a default organization and project from the CLI:

```bash
judgment context set # arrow-key selector; type to filter orgs/projects
judgment context show
```

Once context is set, project-scoped commands can omit IDs. You can still pass
`--organization-id`, `--project-id`, `--organization`, `--project`, or the old
positional IDs for scripts.

```bash
# Projects
judgment projects list

# Traces
judgment traces search --pagination '{"limit":25,"cursorSortValue":null,"cursorItemId":null}'
judgment traces search <PROJECT_ID> --pagination '{"limit":25,"cursorSortValue":null,"cursorItemId":null}'
judgment traces get <PROJECT_ID> <TRACE_ID>
judgment traces spans <PROJECT_ID> <TRACE_ID>
Expand Down Expand Up @@ -131,4 +143,4 @@ uv sync --extra dev
uv run python scripts/generate_cli.py
```

`generate_cli.py` rewrites `src/judgment_cli/generated_commands.py` from the OpenAPI spec. Pass `--spec <url-or-file>` to point at a different spec; `--help` for the full usage.
`generate_cli.py` rewrites `src/judgment_cli/generated/` from the OpenAPI spec. Pass `--spec <url-or-file>` to point at a different spec; `--help` for the full usage.
Loading
Loading