Deploying a Subgraph
From within your subgraph repo, you can run the following command:
cd <SUBGRAPH_DIRECTORY>
graph deploy <SUBGRAPH_NAME> \
--version-label <VERSION_NAME> \
--node https://app.satsuma.xyz/api/subgraphs/deploy \
--deploy-key <DEPLOY_KEY>
Note that the autogenerated
npm run
commands will need to be updated to include these flags or the flags will need to be passed in when running the commands.<SUBGRAPH_NAME> (Required): Specifies a unique name for a new/existing subgraph.
- This name should not include the organization name (e.g. use
mainnet
instead ofsyndicate/mainnet
). - Valid names are composed of alphanumeric characters,
.
,-
, and_
.
—version-label (Required):
- Label that will be used as a unique version name for the subgraph.
- Valid labels are composed of alphanumeric characters,
.
,-
, and_
.