Skip to content

Config File

Generate a starter configuration file:

bash
prx --init

This creates a .promptext.yml in your project root with sensible defaults. Customize it as needed:

yaml
extensions:
  - .go
  - .js
  - .ts
excludes:
  - node_modules/
  - vendor/
  - "*.test.*"
format: markdown
gitignore: true
no-copy: false

Options

SettingDescriptionDefault
extensionsFile types to includeAuto-detect
excludesPatterns to skipCommon build dirs
formatOutput formatmarkdown
gitignoreRespect .gitignoretrue
no-copySkip clipboard copyfalse
verboseShow full outputfalse
debugEnable timing logsfalse

Command Flags

Override config file with command-line flags:

bash
promptext -e .go,.js -x vendor/ -f xml

Priority

  1. Command flags (highest)
  2. Config file
  3. Defaults (lowest)

Example with mixed configuration:

bash
# Config file sets extensions to [.go, .js]
# Command overrides to include only .go files
promptext -e .go