# `cli.ci_arguments`

A `jadpo ci` command names an action other than `init`, or `init` names no host or one it doesn't write for.

Area 14, [Tools](/docs/tooling.md); not declinable; the next step is usually the agent's.

## Why Jadpo refuses it

On its own, `jadpo ci` runs every step a change must pass. Its one action,
`init`, writes the file a CI service reads, and Jadpo writes that file for
GitHub and GitLab. A host it doesn't know would get a file no service
reads, so it writes nothing.

## What it looks like

The host is misspelt:


```sh
jadpo ci init gitlb
```

```text
error: `gitlb` isn't a host `jadpo ci init` writes for
  reason: It writes the file GitHub or GitLab reads. Did you mean `gitlab`?
  next: Use `gitlab` instead of `gitlb` (agent)
  rule: cli.ci_arguments
  help: https://jadpo.dev/docs/errors/cli.ci_arguments
```

`(agent)` at the end of the `next:` line means your coding agent can make the fix itself.

With no host, it asks for one:

```sh
jadpo ci init
```

```text
error: `jadpo ci init` needs a host
  reason: It writes the file one CI service reads: `github` or `gitlab`.
  next: Add the host, for example `jadpo ci init github` (agent)
  rule: cli.ci_arguments
  help: https://jadpo.dev/docs/errors/cli.ci_arguments
```

## How to fix it

**If your project is on GitHub or GitLab**, name it:

```sh
jadpo ci init gitlab
```

It writes `.gitlab-ci.yml`, which runs `jadpo ci` on every push and merge
request.

**If it is on another CI service**, run `jadpo ci` in that service's job:

```sh
jadpo ci
```

It runs the same steps, in the same order, as the files `init` writes.

## Related

- [Generated CI](/docs/tools-for-agents.md#generated-ci)
- [`jadpo ci`](/docs/building-running-and-ci.md#jadpo-ci)
