pitchfork proxy add
- Usage:
pitchfork proxy add [--dir <DIR>] [--daemon <DAEMON>] <SLUG>
Add a slug mapping to the global config
Registers a slug in ~/.config/pitchfork/config.toml that maps to a project directory and daemon name. The proxy uses this to route requests.
If --dir is not specified, uses the current directory. If --daemon is not specified, defaults to the slug name.
Example: pitchfork proxy add api pitchfork proxy add api --daemon server pitchfork proxy add api --dir /home/user/my-api --daemon server
Arguments
<SLUG>
The slug name (used in proxy URLs, e.g. api → api.localhost)
Flags
--dir <DIR>
Project directory (defaults to current directory)
--daemon <DAEMON>
Daemon name within the project (defaults to slug name)
