Skip to content

Commit cc6e6e0

Browse files
authored
Merge pull request #13 from gosuto-inzasheru/issue/12
fix: use `--deploy-key` flag for authentication with the graph
2 parents 857d681 + 4fd52ac commit cc6e6e0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "messari-subgraph-cli",
3-
"version": "0.2.1",
3+
"version": "0.2.2",
44
"description": "A CLI for Messari Subgraph development.",
55
"types": "build/types/types.d.ts",
66
"bin": {

src/command-helpers/build/scriptGenerator.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,13 +290,13 @@ export class ScriptGenerator {
290290
break
291291
case 'hosted-service':
292292
if (this.token) {
293-
deploymentScript = `graph deploy --auth=${this.token} --product hosted-service ${location}`
293+
deploymentScript = `graph deploy --deploy-key=${this.token} --product hosted-service ${location}`
294294
} else {
295295
deploymentScript = `graph deploy --product hosted-service ${location}`
296296
}
297297
break
298298
case 'cronos-portal':
299-
deploymentScript = `graph deploy ${location} --access-token=${this.token} --node https://portal-api.cronoslabs.com/deploy --ipfs https://api.thegraph.com/ipfs --versionLabel=${version}`
299+
deploymentScript = `graph deploy ${location} --deploy-key=${this.token} --node https://portal-api.cronoslabs.com/deploy --ipfs https://api.thegraph.com/ipfs --versionLabel=${version}`
300300
break
301301
default:
302302
throw new Error(

0 commit comments

Comments
 (0)