# noust store

Inspect and maintain the database Noust records deployments in.

```bash
noust store [OPTIONS] COMMAND [ARGS]...
```

Subcommands: [`compat`](#noust-store-compat), [`export`](#noust-store-export), [`import`](#noust-store-import), [`init`](#noust-store-init), [`path`](#noust-store-path), [`stats`](#noust-store-stats), [`sync`](#noust-store-sync)

## noust store compat

Say which Noust releases can open this store, and how to go back to an earlier one.

```bash
noust store compat [OPTIONS]
```

| Option | What it does | Default |
|---|---|---|
| `--to` | The release you want to go back to, such as 3.3.1. |  |
| `--json` | Print the answer as JSON. |  |
| `--reason` | Why this change is made (a change reference, a ticket). Recorded with the command in the audit log; required only where a compliance framework asks for it (ENS) or security.change_reasons is on. |  |

## noust store export

Dump every record as JSON, to a file or to stdout, without secret values.

```bash
noust store export [OPTIONS]
```

| Option | What it does | Default |
|---|---|---|
| `-o`, `--output` | Write to this file instead of stdout. |  |
| `--with-secrets` | Keep the values of secret variables and the credentials of source addresses (needed to move a server; audited). |  |
| `--reason` | Why this change is made (a change reference, a ticket). Recorded with the command in the audit log; required only where a compliance framework asks for it (ENS) or security.change_reasons is on. |  |

## noust store import

Record applications this server was already running before Noust.

```bash
noust store import [OPTIONS]
```

| Option | What it does | Default |
|---|---|---|
| `--reason` | Why this change is made (a change reference, a ticket). Recorded with the command in the audit log; required only where a compliance framework asks for it (ENS) or security.change_reasons is on. |  |

## noust store init

Create the database, or reopen an existing one without touching it.

```bash
noust store init [OPTIONS]
```

| Option | What it does | Default |
|---|---|---|
| `--reason` | Why this change is made (a change reference, a ticket). Recorded with the command in the audit log; required only where a compliance framework asks for it (ENS) or security.change_reasons is on. |  |

## noust store path

Print the location of the database file.

```bash
noust store path [OPTIONS]
```

| Option | What it does | Default |
|---|---|---|
| `--reason` | Why this change is made (a change reference, a ticket). Recorded with the command in the audit log; required only where a compliance framework asks for it (ENS) or security.change_reasons is on. |  |

## noust store stats

Count the applications, sites, services and databases on record.

```bash
noust store stats [OPTIONS]
```

| Option | What it does | Default |
|---|---|---|
| `--json` | Print the counts as JSON. |  |
| `--reason` | Why this change is made (a change reference, a ticket). Recorded with the command in the audit log; required only where a compliance framework asks for it (ENS) or security.change_reasons is on. |  |

## noust store sync

Match the recorded service states to what systemd reports.

```bash
noust store sync [OPTIONS]
```

| Option | What it does | Default |
|---|---|---|
| `--reason` | Why this change is made (a change reference, a ticket). Recorded with the command in the audit log; required only where a compliance framework asks for it (ENS) or security.change_reasons is on. |  |

