# Headless Template

## Setup

* Open a terminal where the new project should be set up.
* Execute the commands below:

```sh
# Generate the project
dotnet new uc-headless --name "<ProjectName>"

# Step into the new project folder
cd "ProjectName"

# Up the docker instances for SQL and Elasticsearch
docker compose -f docker/docker-compose.yml up -d

# Run the project
dotnet watch run
```

{% hint style="success" %}
Once your application runs, you can access the administration interface by requesting **/ucommerce**.
{% endhint %}

## Template options

<table><thead><tr><th width="208">Attribute</th><th width="203">Example Value</th><th width="249">Description</th><th data-type="checkbox">Required</th></tr></thead><tbody><tr><td>--name</td><td>"TestProject"</td><td>A name to be used for the scaffolded project.</td><td>false</td></tr><tr><td>--elastic-password</td><td>"mypassword123"</td><td>Replace a default password for the Elasticsearch instance.</td><td>false</td></tr><tr><td>--sql-edge-password</td><td>"mypassword123"</td><td>Replace a default password for the SQL Edge instance.</td><td>false</td></tr><tr><td>--stripe</td><td>true</td><td>Add Stripe payment provider integration.</td><td>false</td></tr><tr><td>-h</td><td>-</td><td>Get a list of all available options. This won't execute the command.</td><td>false</td></tr></tbody></table>

## Related Articles

{% content-ref url="/pages/woVuLixbEGepQtqGIkwi" %}
[Headless](/readme/headless.md)
{% endcontent-ref %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://dev.ucommerce.net/readme/getting-started/standalone.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
