# Snowplow Micro API reference
> Snowplow Micro arguments and environment variables.
> Source: https://docs.snowplow.io/docs/api-reference/snowplow-micro/
> Documentation index: https://docs.snowplow.io/llms.txt

See [this guide](/docs/testing/snowplow-micro/) for learning about Snowplow Micro and getting started with it.

> **Note: Micro in Console**
>
> You can skip this reference page if you are running Micro [through Console](/docs/testing/snowplow-micro/console/).

You can always run Micro with the `--help` argument to find out what is supported:

```bash
docker run -p 9090:9090 snowplow/snowplow-micro:4.6.2 --help
```

## Arguments

| Argument                              | Description                                                                                                                                                                                   |
| ------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `--config`                            | Configuration file for Collector and Enrich ([usage](/docs/testing/snowplow-micro/local/advanced-usage/#adding-custom-collector-and-enrich-configuration))                                    |
| `--iglu`                              | Configuration file for Iglu Client ([usage](/docs/testing/snowplow-micro/local/advanced-usage/#adding-custom-iglu-resolver-configuration))                                                    |
| `-t`, `--output-tsv` _(since 1.4.0)_  | Print events in TSV format to standard output ([usage](/docs/testing/snowplow-micro/local/#exporting-events))                                                                                 |
| `-j`, `--output-json` _(since 2.4.0)_ | Print events in JSON format to standard output ([usage](/docs/testing/snowplow-micro/local/#exporting-events))                                                                                |
| `-d`, `--destination` _(since 2.4.0)_ | Send data to an HTTP endpoint instead of outputting it via standard output. Requires either `--output-tsv` or `--output-json` ([usage](/docs/testing/snowplow-micro/local/#exporting-events)) |
| `--yauaa`                             | Enable YAUAA user agent enrichment ([usage](/docs/testing/snowplow-micro/local/enrichments/#yauaa-yet-another-user-agent-analyzer))                                                           |
| `--no-storage` _(since 4.0.0)_        | Do not store the events anywhere and disable the API                                                                                                                                          |
| `--storage` _(since 4.0.0)_           | Enable PostgreSQL storage backend ([usage](/docs/testing/snowplow-micro/local/advanced-usage/#persisting-events-across-restarts))                                                             |

## Environment variables

| Variable                     | Version | Description                                                                                                                                                                    |
| ---------------------------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `MICRO_IGLU_REGISTRY_URL`    | 1.5.0+  | The URL for an additional custom Iglu registry ([usage](/docs/testing/snowplow-micro/local/schemas/#pointing-micro-to-an-iglu-registry))                                       |
| `MICRO_IGLU_API_KEY`         | 1.5.0+  | An optional API key for an Iglu registry defined with `MICRO_IGLU_REGISTRY_URL`                                                                                                |
| `MICRO_SSL_CERT_PASSWORD`    | 1.7.0+  | The password for the optional SSL/TLS certificate in `/config/ssl-certificate.p12`. Enables HTTPS ([usage](/docs/testing/snowplow-micro/local/advanced-usage/#enabling-https)) |
| `MICRO_POSTGRESQL_PASSWORD`  | 4.0.0+  | The password for the optional PostgreSQL database ([usage](/docs/testing/snowplow-micro/local/advanced-usage/#persisting-events-across-restarts))                              |
| `MICRO_AZURE_BLOB_ACCOUNT`   | 4.0.0+  | The Azure blob storage account name to use for downloading enrichment assets                                                                                                   |
| `MICRO_AZURE_BLOB_SAS_TOKEN` | 4.0.0+  | The Azure blob storage account token to use for downloading enrichment assets                                                                                                  |
