Command Line
The Houdini cli is used to pull the schema and generating your runtime. Any command can take the --help flag to print help for that command.
Generate
houdini generateGenerates the runtime and the artifacts for every document in your project
Flags:
--pull-schemaor-ppulls the latest schema before generating. Keep in mind you only need to do this if you don’t already have the most up to date version of your schema in your local filesystem. If you are defining your graphql schema inside of your application, such as a SvelteKit application, or are in a monorepo, you don’t need to use this flag.--outputor-ospecifies a location for the runtime generator to leave a query map for certain flavors of persisted queries.--headersor-hspecifies headers to use when pulling your schema. Should be passed as KEY=VALUE--logor-lspecifies the log level for the generation. One of “summary”, “short-summary”, “quiet” or “full”.
Pull Schema
houdini pull-schemaPull the latest schema for your project. In order for this command to run, you must have a url value
set in your config file.
Flags:
--headersor-hspecifies headers to use when pulling your schema. Should be passed as KEY=VALUE