# `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.

## Usage

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

## Arguments

| Name | | Description |
|---|---|---|
| `dir` | **required** | A folder inside a git repository. |

## Options

| Name | Type | Default | Description |
|---|---|---|---|
| `--json` | *flag* |  | Print the result as JSON. |

## Exit codes

| Name | Description |
|---|---|
| `0` | ok |
| `1` | problems found |
| `2` | bad usage |
| `3` | not in this version |

## Examples

*Print the source block of a pushed folder*

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

```text [Output · 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.
```

## See also

- [Publish a chart](https://docs.altasystem.ai/marketplace/publish)
- [How charts are reviewed](https://docs.altasystem.ai/marketplace/review)
- [Pin a commit and fill source](https://docs.altasystem.ai/recipes/pin-commit)
