# `once artifact publish`

Build, export, and explicitly publish through the configured artifact infrastructure.

## Synopsis

```text
once artifact publish [OPTIONS] <TARGET>
```

## Arguments

| Argument | Required | Description |
| --- | --- | --- |
| `<TARGET>` | yes |  |

## Options

| Flag | Value | Default | Description |
| --- | --- | --- | --- |
| `--provider` | `<PROVIDER>` |  | Named infrastructure override. The local provider retains a self-contained package. |
| `--track` | `<TRACK>` |  | Optional distribution track. Does not change artifact content identity. |
| `--allow-on-build` | (flag) |  | Authorize future opted-in builds of this target to publish to this destination. |
| `--sandbox` | `<SANDBOX>` | `off` |  |
| `--config` | `<KEY=VALUE>` |  |  |
