> ## Documentation Index
> Fetch the complete documentation index at: https://docs.agentsfleet.net/llms.txt
> Use this file to discover all available pages before exploring further.

# Global options

> Options accepted by the agentsfleet command-line client.

# Global options

## Synopsis

Place a global option before or after an `agentsfleet` command.

```text theme={"theme":"vesper"}
agentsfleet [GLOBAL_OPTIONS] <COMMAND>
```

`<COMMAND>` comes from `agentsfleet --help`. `GLOBAL_OPTIONS` contains any option from the table below.

## Example with output

```bash theme={"theme":"vesper"}
agentsfleet --version
```

```text theme={"theme":"vesper"}
<varies>
```

## Options

| Option            | Effect                                                     | Default                       | Unit or range                              |
| ----------------- | ---------------------------------------------------------- | ----------------------------- | ------------------------------------------ |
| `-v`, `--version` | Prints the client version and exits.                       | `false`                       | Boolean                                    |
| `--api <URL>`     | Sends API requests to this base URL.                       | `https://api.agentsfleet.net` | URL beginning with `http://` or `https://` |
| `--json`          | Prints machine-readable JSON when the command supports it. | `false`                       | Boolean                                    |
| `--no-input`      | Returns an error instead of asking for input.              | `false`                       | Boolean                                    |
| `--no-open`       | Prints the login URL instead of opening a browser.         | `false`                       | Boolean                                    |
| `-h`, `--help`    | Prints help and exits.                                     | `false`                       | Boolean                                    |

## Errors

The client returns exit code `0` after success. Authentication and unexpected failures return `1`.

Network failures return `2`. API failures return `3`.

Invalid command input returns `4`. Local configuration failures return `5`.

An interrupted browser login returns `130`.

JSON errors include the stable product error identifier when the API supplies one. See the [error registry](/api-reference/error-codes).

## Related pages

* [Command index](/cli/agentsfleet)
* [Client configuration](/cli/configuration)
* [Install the client](/cli/install)
