OS Manuals

/usr/bin/mockery

A mock code autogenerator for Go

From mockery 3.9.1-r0 (os), captured 2026-11-10 by running mockery --help (exit 0). permalink

Generate mock objects for your Go interfaces

Usage:
  mockery [flags]
  mockery [command]

Available Commands:
  completion  Generate the autocompletion script for the specified shell
  help        Help about any command
  init        Generate a basic .mockery.yml file
  migrate     Migrate v2 config to v3.
  showconfig  Show the yaml config
  version     Print the version of mockery

Flags:
      --config string       config file to use
      --cpuprofile string   write a cpu profile of the mockery run to this file
  -h, --help                help for mockery
      --log-level string    Level of logging
      --memprofile string   write a memory profile of the mockery run to this file

Use "mockery [command] --help" for more information about a command.
Options (5)
OptionDescriptionSource
--config stringconfig file to usehelp
--cpuprofile stringwrite a cpu profile of the mockery run to this filehelp
-h, --helphelp for mockeryhelp
--log-level stringLevel of logginghelp
--memprofile stringwrite a memory profile of the mockery run to this filehelp

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.