For any of the subgraph: exchange
as [subgraph]
-
Run the
yarn run codegen:[subgraph]
command to prepare the TypeScript sources for the GraphQL (src/types/*). -
Run the
yarn run build:[subgraph]
command to build the subgraph, and check compilation errors before deploying. -
Run
graph auth https://api.thegraph.com/deploy/ '<ACCESS_TOKEN>'
-
Deploy via
yarn run deploy:[subgraph]
.