You can install Graph CLI with either npm or yarn.
Note: You need version 0.21.0 or above
npm:
npm install -g @graphprotocol/graph-cli
Yarn:
yarn global add @graphprotocol/graph-cli
git clone git@github.com:AngelProtocolFinance/ap-subgraph.git
cd ap-subgraph
npm:
npm install
Yarn:
yarn install
Authenticate within the CLI, build and deploy your subgraph to the Studio.
Contact someone from the team to get the Private Key.
You will need your Deploy Key to deploy your subgraph from the CLI.
Open https://thegraph.com/studio/, connect your wallet and copy the DEPLOY KEY
Note: DEPLOY_KEY is the value you copied in the previous step
graph auth --studio DEPLOY_KEY
yarn codegen && yarn build
yarn deploy