# kindgi artifacts

> Deprecated: use kindgi files

## `kindgi artifacts`

**Synopsis**

```sh signature
kindgi artifacts <command>
```

Deprecated: use kindgi files. Removed in 0.9.0.

**Commands**

| Command                                                                                                            | Description                                                                                                                                                 |
| ------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [`kindgi artifacts list`](https://docs.kindgi.com/v0.8.0/reference/cli/artifacts.md#kindgi-artifacts-list)         | List artifacts you can read, newest first: by run, project or type.                                                                                         |
| [`kindgi artifacts get`](https://docs.kindgi.com/v0.8.0/reference/cli/artifacts.md#kindgi-artifacts-get)           | An artifact's name, type, size and sha256, without its bytes.                                                                                               |
| [`kindgi artifacts upload`](https://docs.kindgi.com/v0.8.0/reference/cli/artifacts.md#kindgi-artifacts-upload)     | Upload a file as an artifact: it belongs to its run's project, else --project's, else the project your API key is limited to, else the workspace's default. |
| [`kindgi artifacts download`](https://docs.kindgi.com/v0.8.0/reference/cli/artifacts.md#kindgi-artifacts-download) | Download an artifact to a file: -o's path, else its own name in this directory (an existing file is kept unless --force).                                   |
| [`kindgi artifacts delete`](https://docs.kindgi.com/v0.8.0/reference/cli/artifacts.md#kindgi-artifacts-delete)     | Delete an artifact.                                                                                                                                         |

**See also**

- [Give an agent its input](https://docs.kindgi.com/v0.8.0/guides/agents/give-an-agent-input.md)

### `kindgi artifacts list`

**Synopsis**

```sh signature
kindgi artifacts list [--run=<run-id>] [--project=<project-id>] [--content-type=<mime>] [--limit=<n>] [--cursor=<c>] [--table]
```

List artifacts you can read, newest first: by run, project or type.

**Options**

| Option                   | Default              | Description                                                      |
| ------------------------ | -------------------- | ---------------------------------------------------------------- |
| `--content-type <value>` | none                 | Only this MIME type.                                             |
| `--cursor <value>`       | none                 | Resume after this cursor, from the previous page's `nextCursor`. |
| `--limit <value>`        | `25` (at most `100`) | The most artifacts to return (default 25, at most 100).          |
| `--project <value>`      | none                 | Only one project's artifacts.                                    |
| `--run <value>`          | none                 | Only the artifacts this run produced.                            |

Every command also takes the [global flags](https://docs.kindgi.com/v0.8.0/reference/cli.md#global-flags).

**Examples**

The artifacts one run produced. `kindgi files list` takes its place, with the same flags; 0.8.0 removes `kindgi artifacts`.

```sh
kindgi artifacts list --run=<run-id> --table
```

**See also**

- [Give an agent its input](https://docs.kindgi.com/v0.8.0/guides/agents/give-an-agent-input.md)
- [`kindgi artifacts`](https://docs.kindgi.com/v0.8.0/reference/cli/artifacts.md#kindgi-artifacts)

### `kindgi artifacts get`

**Synopsis**

```sh signature
kindgi artifacts get <blob-id>
```

An artifact's name, type, size and sha256, without its bytes.

**Options**

Every command also takes the [global flags](https://docs.kindgi.com/v0.8.0/reference/cli.md#global-flags).

**Examples**

An artifact's name, type, size and sha256. `kindgi files get <file-id> <version>` takes its place: the id an upload answered is the file's id, at version 1.

```sh
kindgi artifacts get <blob-id>
```

**See also**

- [Give an agent its input](https://docs.kindgi.com/v0.8.0/guides/agents/give-an-agent-input.md)
- [`kindgi artifacts`](https://docs.kindgi.com/v0.8.0/reference/cli/artifacts.md#kindgi-artifacts)

### `kindgi artifacts upload`

**Synopsis**

```sh signature
kindgi artifacts upload <file> [--name=<name>] [--content-type=<mime>] [--run=<run-id>] [--project=<project-id>] [--tag=<key>=<value>]…
```

Upload a file as an artifact: it belongs to its run's project, else --project's, else the project your API key is limited to, else the workspace's default. The runtime caps an upload (100 MiB unless set otherwise).

**Options**

| Option                   | Default                                                                                                            | Description                                                                     |
| ------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------- |
| `--content-type <value>` | `application/octet-stream`                                                                                         | Its MIME type, such as `application/pdf` (default: `application/octet-stream`). |
| `--name <value>`         | the file's name                                                                                                    | Its name (default: the file's name).                                            |
| `--project <value>`      | with `--run`, the run's project; else the project your API key is limited to; else the workspace's default project | With no --run: the project it belongs to.                                       |
| `--run <value>`          | none                                                                                                               | The run that produced it: it joins that run's project.                          |
| `--tag <value>`          | none                                                                                                               | A label, `key=value` (repeatable). Repeatable.                                  |

Every command also takes the [global flags](https://docs.kindgi.com/v0.8.0/reference/cli.md#global-flags).

**Examples**

Keep a run's report. `kindgi files upload` takes its place, and takes the type from the file's extension.

```sh
kindgi artifacts upload report.pdf --run=<run-id> --content-type=application/pdf
```

From [Give an agent its input](https://docs.kindgi.com/v0.8.0/guides/agents/give-an-agent-input.md):

```sh
pnpm exec kindgi artifacts upload orders.csv --content-type=text/csv
```

**See also**

- [Give an agent its input](https://docs.kindgi.com/v0.8.0/guides/agents/give-an-agent-input.md)
- [`kindgi artifacts`](https://docs.kindgi.com/v0.8.0/reference/cli/artifacts.md#kindgi-artifacts)

### `kindgi artifacts download`

**Synopsis**

```sh signature
kindgi artifacts download <blob-id> [-o <file>] [--force]
```

Download an artifact to a file: -o's path, else its own name in this directory (an existing file is kept unless --force). The file is written only once the whole download has arrived.

**Options**

| Option        | Default                                           | Description                      |
| ------------- | ------------------------------------------------- | -------------------------------- |
| `--force`     | off                                               | Overwrite the file if it exists. |
| `--o <value>` | the artifact's own name, in the current directory | Write it to this file.           |

Every command also takes the [global flags](https://docs.kindgi.com/v0.8.0/reference/cli.md#global-flags).

**Examples**

Save an artifact's bytes to a file. `kindgi files download <file-id> <version>` takes its place, with the same flags.

```sh
kindgi artifacts download <blob-id> -o report.pdf
```

**See also**

- [Give an agent its input](https://docs.kindgi.com/v0.8.0/guides/agents/give-an-agent-input.md)
- [`kindgi artifacts`](https://docs.kindgi.com/v0.8.0/reference/cli/artifacts.md#kindgi-artifacts)

### `kindgi artifacts delete`

**Synopsis**

```sh signature
kindgi artifacts delete <blob-id>
```

Delete an artifact. It stays recoverable until the retention policy for `artifact` purges it.

**Options**

Every command also takes the [global flags](https://docs.kindgi.com/v0.8.0/reference/cli.md#global-flags).

**Examples**

Delete an artifact. `kindgi files delete <file-id> <version>` takes its place, and deletes that version only.

```sh
kindgi artifacts delete <blob-id>
```

**See also**

- [Give an agent its input](https://docs.kindgi.com/v0.8.0/guides/agents/give-an-agent-input.md)
- [`kindgi artifacts`](https://docs.kindgi.com/v0.8.0/reference/cli/artifacts.md#kindgi-artifacts)
