# Command line interface

## nominal-checks-from-jama

Make Nominal checks from the requirements in a Jama Connect project.

Usage

```shell
nominal-checks-from-jama [OPTIONS] COMMAND [ARGS]...
```

Options

### --config <config_path>

The settings file.

Default:
:   `'jama-checks.toml'`

### agent-plan

Write instructions for your agent to build the checklist and draft its conditions.

Give the file to an agent connected to Nominal, such as Claude, ChatGPT or Nominal’s Analyst. It
keeps a check for each requirement, or as many as each test case’s pass criteria need, in a draft
of the checklist, and leaves publishing to you.

Usage

```shell
nominal-checks-from-jama agent-plan [OPTIONS]
```

Options

#### --from <source>

A file from step 1 or 2 to start from, such as requirements.json or checks.json, instead of reading Jama.

#### --test-cases

Work on the project’s test cases, with their own files and checklist, instead of its requirements.

#### --target <target>

The RID of the asset or run whose channels the conditions should use.

#### -o, --output <output>

The file to write: checks-plan.md, or test-checks-plan.md for test cases.

### checks

Step 2: make a check for each requirement or test case, into a file.

Usage

```shell
nominal-checks-from-jama checks [OPTIONS]
```

Options

#### --from <source>

A file from step 1 or 2 to start from, such as requirements.json or checks.json, instead of reading Jama.

#### --test-cases

Work on the project’s test cases, with their own files and checklist, instead of its requirements.

#### -o, --output <output>

The file to write: checks.json, or test-checks.json for test cases.

### init

Create the settings file, with the project’s requirement and test case types filled in.

It asks for the Jama Connect URL, the project id and the account, offering the settings file’s
values with –force. It asks for the secret if your operating system’s credential manager
doesn’t have it, and stores it there. Run it again with –re-init after item types change in
Jama Connect.

Usage

```shell
nominal-checks-from-jama init [OPTIONS]
```

Options

#### --base-url <base_url>

The Jama Connect URL, such as <https://example.jamacloud.com>, or the URL of any page in Jama Connect.

#### --project <project>

The project id. When –base-url is a page in the project, its project id is the default.

#### --auth <auth>

How to sign in: client_credentials unless the settings file says otherwise.

Options:
:   client_credentials | basic | token

#### --account <account>

The client ID, or the username for basic.

#### --force

Replace an existing settings file, offering its values as the answers. Keeps its [nominal] settings.

#### --re-init

Read the project’s item types again, with the settings file’s URL, project and account, asking nothing.

### login

Store the Jama secret in your operating system’s credential manager, replacing any stored before.

Usage

```shell
nominal-checks-from-jama login [OPTIONS]
```

### read

Step 1: read the project’s requirements, or its test cases, from Jama into a file.

Usage

```shell
nominal-checks-from-jama read [OPTIONS]
```

Options

#### --test-cases

Work on the project’s test cases, with their own files and checklist, instead of its requirements.

#### -o, --output <output>

The file to write: requirements.json, or test-cases.json with –test-cases.

### sync

Create or update the checklist in Nominal, with a check for each requirement or test case.

Jama is the source of truth for each check’s title and description. Checks someone changed in
Nominal are rewritten from Jama, keeping their conditions, unless –update says otherwise.
Requirements and test cases each have their own checklist.

Usage

```shell
nominal-checks-from-jama sync [OPTIONS]
```

Options

#### --from <source>

A file from step 1 or 2 to start from, such as requirements.json or checks.json, instead of reading Jama.

#### --test-cases

Work on the project’s test cases, with their own files and checklist, instead of its requirements.

#### --dry-run

Show what’s different from Jama, and write nothing.

#### --update <update>

What to rewrite from Jama in checks that differ: none only reports the differences.

Default:
:   `'all'`

Options:
:   all | title | description | none

#### --remove-missing

Remove checks whose requirement or test case is gone from Jama.

Jama Connect® is a registered trademark of Jama Software, Inc.
