{"id":22230073,"url":"https://github.com/stakemachine/graph-indexer-cli","last_synced_at":"2025-06-13T11:33:46.541Z","repository":{"id":37830647,"uuid":"346743157","full_name":"stakemachine/graph-indexer-cli","owner":"stakemachine","description":"The Graph Indexer CLI","archived":false,"fork":false,"pushed_at":"2023-03-22T02:58:35.000Z","size":206,"stargazers_count":7,"open_issues_count":3,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2023-07-27T22:38:47.901Z","etag":null,"topics":["blockchain","go","golang","thegraphprotocol"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stakemachine.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-03-11T15:11:56.000Z","updated_at":"2021-12-09T13:10:26.000Z","dependencies_parsed_at":"2023-02-08T22:15:26.617Z","dependency_job_id":null,"html_url":"https://github.com/stakemachine/graph-indexer-cli","commit_stats":null,"previous_names":[],"tags_count":15,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stakemachine%2Fgraph-indexer-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stakemachine%2Fgraph-indexer-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stakemachine%2Fgraph-indexer-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stakemachine%2Fgraph-indexer-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stakemachine","download_url":"https://codeload.github.com/stakemachine/graph-indexer-cli/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227831079,"owners_count":17826155,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["blockchain","go","golang","thegraphprotocol"],"created_at":"2024-12-03T01:14:13.255Z","updated_at":"2024-12-03T01:14:13.875Z","avatar_url":"https://github.com/stakemachine.png","language":"Go","readme":"# The Graph Indexer CLI\n[![golangci-lint](https://github.com/stakemachine/graph-indexer-cli/actions/workflows/golangci-lint.yml/badge.svg)](https://github.com/stakemachine/graph-indexer-cli/actions/workflows/golangci-lint.yml)\n[![CodeQL](https://github.com/stakemachine/graph-indexer-cli/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/stakemachine/graph-indexer-cli/actions/workflows/codeql-analysis.yml)  \nThis repository is WIP rework of [indexer-cli](https://github.com/graphprotocol/indexer/tree/main/packages/indexer-cli).  \nNot all commands are implemented. Alpha software, use at your own risk.\n\n## Install\n```\ngo get -u github.com/stakemachine/graph-indexer-cli\n```\n## How to use\nFirst of all you need to set ENV variable for your indexer-agent.\n```\nexport GRAPH_INDEXER_AGENT=\"http://\u003cindexer-agent\u003e:port\"\n```\n\n### Status\n```\ngraph-indexer-cli status\n```\nBy default we use testnet subgraph, to see active allocations in mainnet:\n```\nexport GRAPH_NETWORK_SUBGRAPH=\"https://api.thegraph.com/subgraphs/name/graphprotocol/graph-network-mainnet\"\n```\n\n### Rules\n#### Set\n```\ngraph-indexer-cli rules set QmRhYzT8HEZ9LziQhP6JfNfd4co9A7muUYQhPMJsMUojSF allocationAmount 100000 decisionBasis always\n```\n#### Get\n```\ngraph-indexer-cli rules get QmRhYzT8HEZ9LziQhP6JfNfd4co9A7muUYQhPMJsMUojSF\n```\n#### Delete\n```\ngraph-indexer-cli rules delete QmRhYzT8HEZ9LziQhP6JfNfd4co9A7muUYQhPMJsMUojSF\n```\n\n### Cost Models\n#### Set\n```\ngraph-indexer-cli cost set model QmRhYzT8HEZ9LziQhP6JfNfd4co9A7muUYQhPMJsMUojSF costModel 'default =\u003e 0.1;'\n```\nalso you can set variables for model\n```\ngraph-indexer-cli cost set model QmRhYzT8HEZ9LziQhP6JfNfd4co9A7muUYQhPMJsMUojSF variables '{\"DAI\":\"0.5\"}'\n```\n#### Get\n```\ngraph-indexer-cli cost get all # or Deployment ID\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstakemachine%2Fgraph-indexer-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstakemachine%2Fgraph-indexer-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstakemachine%2Fgraph-indexer-cli/lists"}