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

# artifact

> Store, fetch, list, link and delete artifacts.

## envctl artifact put

```bash theme={null}
envctl artifact put <file> [--name n] [--project p] [--expires 7d] [--label k=v] [--link 24h] [--json]
```

| Flag | Default | Description |
| - | - | - |
| `--name` | the file's name | The name it's stored and downloaded under |
| `--project` | the folder's git remote and path | Whose key seals it |
| `--expires` | `7d` | How long it's kept: `90m`, `12h`, `7d`, at most `30d` |
| `--label key=value` | | Tag it. Repeatable |
| `--link` | | Also make a signed download link lasting this long |
| `--json` | | Print the artifact and link as JSON |

## envctl artifact get

```bash theme={null}
envctl artifact get <id> [-o <file>]
```

Downloads it, checks its size and sha256, and writes it to `-o`, or to its name in this folder. `-o -` writes to standard output.

## envctl artifact ls

```bash theme={null}
envctl artifact ls [--project p] [--json]
```

## envctl artifact link

```bash theme={null}
envctl artifact link <id> [--expires 24h]
```

Prints a signed link anyone can download with until it expires, never later than the artifact itself.

## envctl artifact rm

```bash theme={null}
envctl artifact rm <id>
```

Deletes it and its stored objects; its links stop working.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.