# marmot install-std (/docs/commands/install-std)

<!-- Generated by scripts/gen.mjs from `marmot install-std --help` and scripts/commands.mjs. Do not edit by hand. -->

Compile every standard library package in dev mode and optimize it at -O 2 (tier 1) into the build cache. The first dev build of any program then links the optimized standard library instead of compiling it. Run it once after you install or upgrade marmot, and once per cross target. Later builds keep it warm in the cache.

```text title="Usage"
marmot install-std [-target GOOS/GOARCH] [flags]
```

## Examples [#examples]

```sh
marmot install-std
marmot install-std -target linux/arm64
```

Run `marmot install-std` once after you install or upgrade marmot. The first dev build of a program
then links the standard library optimized at -O 2 from the build cache. Run it once for each cross
target with `-target`.

## Full help [#full-help]

```text title="marmot install-std --help"
Compile every standard library package in dev mode and optimize it at -O 2 (tier 1) into the build cache. The first dev build of any program then links the optimized standard library instead of compiling it. Run it once after you install or upgrade marmot, and once per cross target. Later builds keep it warm in the cache.

Usage:
  marmot install-std [-target GOOS/GOARCH] [flags]

Examples:
marmot install-std
marmot install-std -target linux/arm64

Flags:
  -h, --help   help for install-std
```