﻿---
title: assembler config init cli command
description: Sources the configuration from the config folder on the main branch of docs-builder. By default, the configuration is placed in a platform-specific application...
url: https://docs-v3-preview.elastic.dev/docs-builder/cli/assembler/config/init
products:
  - Elastic Docs Builder
---

# assembler config init cli command
```bash
docs-builder assembler config init [options]
```

Sources the configuration from [the `config` folder on the `main` branch of `docs-builder`](https://github.com/elastic/docs-builder/tree/main/config).
By default, the configuration is placed in a platform-specific application support folder, which is the primary location for CI environments:
- **macOS:** `~/Library/Application Support/docs-builder`
- **Linux:** `~/.config/docs-builder`
- **Windows:** `%APPDATA%\docs-builder`

Use the `--local` flag to save the configuration in the current working directory instead. This is the recommended approach when building a local workspace for testing.
See [using a local workspace for assembler builds](/docs-builder/cli/assemble#using-a-local-workspace) for more information.

## Options

<definitions>
  <definition term="--git-ref string">
    Git ref to fetch. Defaults to main.
  </definition>
  <definition term="--[no-]local">
    Write the configuration into cwd so subsequent commands treat it as a local override.
    **Default:** `false`
  </definition>
  <definition term="-l --log-level enum">
    Minimum log level.
    **Values:** trace, debug, information, warning, error, critical, none
    **Default:** `information`
  </definition>
  <definition term="-c --config-source enum">
    Override the configuration source: local, remote
    **Values:** local, remote, embedded
  </definition>
  <definition term="--[no-]skip-private-repositories">
    Skip cloning private repositories
  </definition>
</definitions>