# Read logs and download artifacts

> Read completed job logs, select build outputs and download verified files.

Source: https://www.sorus.run/docs/guides/artifacts
Reviewed: 2026-10-21

You need access to the job and its identifier.

## Logs

Read a completed job's output:

```sh
cargo sorus logs <job>
```

Replace `<job>` with the job identifier. While the job runs, use `cargo sorus status <job>` to follow progress. The [results guide](https://www.sorus.run/docs/guides/results) covers raw output, structured test results and nextest JUnit reports.

## Artifact selection

Add one `--artifact` for each repository-relative file. For a package whose binary is named `my-app`:

```sh
cargo sorus build --release --locked --artifact target/release/my-app --artifact-dir ./sorus-output
```

Replace `my-app` with your binary's name. Adjust the path if your Cargo configuration or target changes the output directory.

Only selected regular files are collected. Directories, symlinks and paths outside the workspace are refused. A selection may contain at most 64 distinct files, each no larger than 512 MiB, with a total of 2 GiB. The service does not run another build to create a missing output.

`--artifact-dir` selects a local destination for the returned artifacts. Without it, the client uses its local artifact cache and reports the destination. Check the reported files before using them in a release.

## Download artifacts

List the available files:

```sh
cargo sorus artifacts <job>
```

Use the returned attempt and index to download a file:

```sh
cargo sorus artifacts <job> <attempt> <index> <file>
```

Replace every angle-bracket placeholder with the listed value or your chosen destination. Retrieval verifies the data and refuses to overwrite an existing file.

To reconnect and retrieve the original selection into a specified directory:

```sh
cargo sorus status <job> --artifact-dir ./sorus-output
```

An interrupted download can be retried without rerunning the workload. Preserve the job identifier and check whether any destination files already exist.

## Retention

Artifacts are retrievable for **24 hours from original job admission**, including execution time. Copy files you need to retain into your own durable storage before that window ends.

Artifact expiry is separate from source and log retention. Check those terms in your agreement when designing a release or audit workflow.
