Apollo Elements Apollo Elements Guides API Blog Toggle darkmode

Generator: App

Generate an Apollo Elements skeleton app.

Example

npm init @apollo-elements -- \
  app \
    --uri '/graphql' \
    --install \
    --start \
    --yes
npm init @apollo-elements -- \
  app \
    --pkg-manager yarn \
    --uri '/graphql' \
    --install \
    --start \
    --yes
pnpm init @apollo-elements -- \
  app \
    --pkg-manager pnpm \
    --uri '/graphql' \
    --install \
    --start \
    --yes

Options

FlagDescriptionTypeDefault
--helpShow helpboolean
--versionShow version numberboolean
--pkg-managerPreferred package managernpm|yarn|pnpmnpm
--uri, -uURI to your GraphQL endpointstring
--yes, -yUse default package.json fields (e.g. author, license)boolean
--skip-codegenSkip the codegen phasestringfalse
--install, -iAutomatically install dependenciesboolean
--start, -sLaunch the dev server after scaffoldingboolean