Skip to Content

wunderctl up

Published: 2022-05-23

When developing a WunderGraph Application, you will most likely use the wunderctl up command. It starts the code generation process, starts the WunderGraph server and watches for changes. If you change your configuration, add or remove Operations, wunderctl up will automatically re-generate all required files and restart the server.

Prerequisites#

The command wunderctl up can only be used inside a WunderGraph project directory. The easiest way to initialize a new WunderGraph project is to use the wundergraph init command.

wunderctl up takes two entrypoints, one for the configuration, one for the hooks. You can adjust both using flags.

Flags#

--debug#

If you want more verbose output, use the --debug flag. It gives you a lot more useful information, like the current state of code-generation, generated endpoints, etc...

--entrypoint#

Allows you to set the configuration entrypoint. Defaults to: wundergraph.config.ts

--hooksEntryPoint#

Allows you to set the hooks entrypoint. Defaults to: wundergraph.hooks.ts

--listen_addr#

Configure the host:port combination, where the server will listen for connections. Defaults to: localhost:9991

--watch_dir#

Configure the directory to watch for changes.


Product

Comparisons

Subscribe to our newsletter!

Stay informed when great things happen! Get the latest news about APIs, GraphQL and more straight into your mailbox.

© 2022 WunderGraph