# benchweave setup


Initialize an at-rest data directory (fresh store + credentials).


``` bash
benchweave setup [OPTIONS]
```


<span class="gd-details-chevron" aria-hidden="true"></span>Full --help output


    Usage: benchweave setup [OPTIONS]

      Initialize an at-rest data directory (fresh store + credentials).

    Options:
      --data-dir PATH  At-rest data directory (holds state.sqlite + content/).
                       [required]
      --show-secret    Print the generated gateway secret to stdout. Default: the
                       secret is written only to <data-dir>/benchweave.env (mode
                       0600; on Windows, access restricted to your account) and
                       never printed.
      --json           Emit the stable machine JSON contract instead of text.
      --help           Show this message and exit.


# Options


`--data-dir: PATH`  
**Required.** At-rest data directory (holds state.sqlite + content/). Environment variable: `BENCHWEAVE_DATA_DIR`.

`--show-secret`  
Print the generated gateway secret to stdout. Default: the secret is written only to /benchweave.env (mode 0600; on Windows, access restricted to your account) and never printed.

`--json`  
Emit the stable machine JSON contract instead of text.
