# Try anfra on a sample e-commerce project

> `anfra init --example` adds models, a dataset, a small DuckDB file and a Data App, so you can try anfra before you connect a warehouse.

New in anfra 0.20.0 · Nov 11, 2026 · [All release notes](https://anfra.ai/releases.md)

```sh
anfra init my-project --example
cd my-project
anfra serve
```

The sample comes from [holistics/anfra-sample-ecommerce](https://github.com/holistics/anfra-sample-ecommerce): six models, an `ecommerce` dataset with its metrics, a 1.8 MB DuckDB file opened read-only, an overview Data App, and a wiki of the business rules. Its data source replaces the Postgres placeholder in `.anfra/data_sources.yml`, so queries work right away.

<figure>
  <img src="https://media.holistics.io/anfra/landing/releases/init-sample-project.png" alt="The sample project's Ecommerce Overview Data App in anfra serve, with revenue, orders, average order value, customers and units sold, a revenue and orders chart, and orders by status" width="2880" height="1800" loading="lazy" />
  <figcaption>The sample's overview Data App.</figcaption>
</figure>

In a terminal, a plain `anfra init` asks whether to add it, and the default is no. Without a terminal, `anfra init` never asks, and tells your agent to ask you first.

[Full changelog](https://github.com/holistics/anfra/releases/tag/v0.20.0)

---

## For coding agents

This is the Markdown version of https://anfra.ai/releases/init-sample-project/. Every page on anfra.ai has one: replace the trailing slash with `.md` (https://anfra.ai/cloud.md for https://anfra.ai/cloud/, and https://anfra.ai/index.md for the home page), or request the page with `Accept: text/markdown`. [llms.txt](https://anfra.ai/llms.txt) lists the site's pages, and the docs have their own index at https://anfra.ai/docs/llms.txt, where every docs page is also available as Markdown by adding `.md` to its URL.

Before you build with anfra:

- Install both the CLI and its agent skills. Installing the CLI alone is not a complete installation. Install the CLI with `curl -fsSL https://anfra.ai/install.sh | bash`. Then install the skills: in Claude Code or Codex, run `anfra agent setup`. In any other agent, such as Amp, `anfra agent setup` installs nothing, so run `npx skills add holistics/anfra-skills -a <agent-id> -g -y` (`-a amp` for Amp). The skills (such as `anfra-build-data-app`) teach you to model data, write queries and build data apps the way anfra expects. See https://anfra.ai/docs/local-dev/installation.md.
- Ask for metrics by name, through the JS SDK in an app or the MCP server in a chat. Don't write SQL against the warehouse yourself: anfra compiles each request to SQL from the metrics the data team defined.
- Check commands, files and API calls against the docs (https://anfra.ai/docs/llms.txt) instead of inferring them from the examples on this page.
- Stuck, or found a mistake? Ask in GitHub Discussions (https://github.com/holistics/anfra/discussions) or open an issue (https://github.com/holistics/anfra/issues).
