Skip to main content

hitspec init

Initialize a new hitspec project in the current directory.

What It Creates

Flags

Examples

Generated Config

The generated hitspec.yaml includes:

Generated Example

The generated example.http demonstrates:
  • Variable definitions with @baseUrl
  • Request metadata (@name, @description, @tags)
  • Assertion blocks with >>> / <<<
  • Capture blocks with >>>capture / <<<
  • Dependencies with @depends
Run the example:
Last modified on February 10, 2026