# Available options

Option Short syntax Type Usage
--endpoint <endpoint> -e string(url) See doc
--json <path to json> -j string(path) See doc
--output <path> -o string(path)
default ./generated.ts
See doc
--codegen-functions boolean See doc
--codegen-react-hooks boolean See doc
--codegen-vue-hooks boolean See doc
--codegen-templates boolean See doc
--apolloVersion number See doc
--gen-fragments boolean See doc
--customScalars <scalars> {"myScalar": "MyType"} See doc
--prefix <prefix> -p string
default null
See doc
--suffix <suffix> -s string
default null
See doc
--header <header> string
default null
See doc
--compileToJs boolean See doc
--download -D string
default null
See doc
generate string
default development
See doc
init See doc