> ## Documentation Index
> Fetch the complete documentation index at: https://docs.agentlinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# linktrail fmt

> Format the ledger consistently.

```bash theme={null}
linktrail fmt
```

## Behavior and output

Refuses to rewrite a ledger with malformed lines. Uses the ledger mutation lock and prints whether formatting changed.

## Arguments

No command-specific options.

## Exit status

0 on success; 2 on usage, configuration, input or request failure.

Read [configuration and file ownership](/reference/local/configuration) before automating this command. Read [local file contracts](/reference/local/artifacts) for artifact fields. Browse the [local command index](/reference/local/index) for related commands.

<Note>Reference follows the current development CLI and HTTP contracts. Hosted availability depends on the selected environment. See [capability status](/capability-status).</Note>
