Installing the WunderGraph SDK
Published: 2022-05-23
Prerequisites#
To install the WunderGraph SDK, make sure you have Node.JS & npm / yarn installed.
Installation using wunderctl#
wunderctl, the WunderGraph command line interface makes it very easy to scaffold new projects.
Use the following command to init a new project.
wunderctl init
Then cd into the directory and install all dependencies.
Using yarn:
cd .wundergraphyarn
Using npm:
cd .wundergraphnpm install
Manual installation#
Although it's very convenient, you might want to manually install the SDK in some scenarios.
To do so, init a new npm project and install the dependency.
Using yarn:
yarn inityarn add @wundergraph/sdk
Using npm:
npm initnpm install --save @wundergraph/sdk