Setup
Configuration for setup hooks with trigger-based command execution.
Commands run during Claude Code setup/initialization. Exit code 2 blocks the setup. The trigger value is used as the match query for pattern-based execution.
Configuration Properties
Section titled “Configuration Properties”commands
Section titled “commands”Map of trigger patterns to command configurations. Keys are glob patterns matching trigger values (e.g., “install”, ”*”).
| Attribute | Value |
|---|---|
| Type | object |
| Default | {} |
Nested Types
Section titled “Nested Types”This section uses the following nested type definitions:
SetupCommand Type
Section titled “SetupCommand Type”Configuration for individual setup commands with optional messages
Properties:
| Property | Type | Default | Description |
|---|---|---|---|
maxOutputLines | `integer | null` | null |
message | `string | null` | null |
notifyPerCommand | `boolean | null` | null |
run | string | - | The shell command to execute |
showCommand | `boolean | null` | true |
showStderr | `boolean | null` | null |
showStdout | `boolean | null` | null |
timeout | `integer | null` | null |
See Also
Section titled “See Also”- Configuration Overview - Complete reference for all configuration options