> For the complete documentation index, see [llms.txt](https://1nodeio.gitbook.io/1node/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://1nodeio.gitbook.io/1node/1node-api/endpoints/generate-flux-config.md).

# Generate Flux Config

**CLI:** 1node generate-flux-config

**API:**

POST /v1/templates/flux-config

**Body (JSON):** specify name, image, ports, env, resources

**Response (201):**

```
{ "configPath":"/workspace/flux-config.json" }
```

***

All endpoints support ?output=json to return responses in JSON, and X-1NODE-CLI:true header to skip interactive steps in CI/CD.
