# `alta publish`

> alta publish: dry run: checks the folder is committed and pushed, prints the source block; sends nothing.

Dry run: checks the folder is committed and pushed, prints the source block; sends nothing.

*Les descriptions et les sorties sont en anglais, comme la CLI.*

## Usage

```text
alta publish <dir> [--json]
```

## Arguments

| Nom | | Description |
|---|---|---|
| `dir` | **requis** | A folder inside a git repository. |

## Options

| Nom | Type | Défaut | Description |
|---|---|---|---|
| `--json` | *flag* |  | Print the result as JSON. |

## Codes de sortie

| Nom | Description |
|---|---|
| `0` | ok |
| `1` | problèmes trouvés |
| `2` | mauvais usage |
| `3` | pas dans cette version |

## Exemples

*Print the source block of a pushed folder*

```sh [Terminal]
alta publish my-pack
```

```text [Sortie · exit 1]
not ready (dry run: nothing sent)
  problem: my-pack is not in a git repository
  1. Nothing was sent. Fix the problems above, then run `alta publish` again.
```

## Voir aussi

- [Publier un chart](https://docs.altasystem.ai/fr/marketplace/publish)
- [Comment les charts sont relus](https://docs.altasystem.ai/fr/marketplace/review)
- [Épingler un commit et remplir source](https://docs.altasystem.ai/fr/recipes/pin-commit)
