Skip to content

pitchfork proxy add

  • Usage: pitchfork proxy add [FLAGS] <SLUG>
  • Effect: modifies state

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:

text
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)
  • --namespace <NAMESPACE> — Namespace to associate with the slug. If not provided, derived from the project directory.
  • -h --help — Print help
MIT LicenseCopyright © 2026jdx.dev