⚙️CLI Usage
Sample CLI usage
Summary: The graph cli gives you the superuser access to Mantle subgraph infrastructure.
Sample commands to get you started
graph init
— Creates a new subgraph project from an example or an existing contract.graph create
— Registers a subgraph name.graph remove
— Unregisters a subgraph name.graph codegen
— Generates AssemblyScript types for smart contract ABIs and the subgraph schema.graph build
— Compiles a subgraph to WebAssembly.graph deploy
— Deploys a subgraph to Mantle Subgraph Service.graph auth
— Stores a Mantle Subgraph Service access token in the system's keychain.graph local
— Runs tests against a test environment (using Ganache by default).graph test
— Downloads and runs the Matchstick rust binary in order to test a subgraph.graph add
- Adds a new datasource to the yaml file and writes the necessary changes to other files - schema.graphql, abi and mapping.
Last updated