# Will the \`slash-graphql cli\` be replaced by something similar for Dgraph Cloud API?

**URL:** https://discuss.dgraph.io/t/will-the-slash-graphql-cli-be-replaced-by-something-similar-for-dgraph-cloud-api/15106
**Category:** Dgraph Cloud
**Tags:** kind:question
**Created:** [July 27, 2021, 4:26pm UTC](https://discuss.dgraph.io/t/will-the-slash-graphql-cli-be-replaced-by-something-similar-for-dgraph-cloud-api/15106 "2021-07-27T16:26:11Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Poolshark](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/poolshark/32/10074_2.png) [@Poolshark](https://discuss.dgraph.io/u/Poolshark)
#### Post date: [July 27, 2021, 4:26pm UTC](https://discuss.dgraph.io/t/will-the-slash-graphql-cli-be-replaced-by-something-similar-for-dgraph-cloud-api/15106/1 "2021-07-27T16:26:11Z")

</div>

Hi,

i was wondering if there will be a replacement for the `slash-graphql` npm package? If not has anyone put something together already to deploy eg. lambdas locally?

I found it also quite weird, that the Cloud API apparently can **list** and **update** lambdas but not **add** them?

Thanks!

---

<div class="post-metadata">

### Author: ![jdgamble555](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/jdgamble555/32/7503_2.png) [@jdgamble555](https://discuss.dgraph.io/u/jdgamble555)
#### Post date: [July 27, 2021, 6:37pm UTC](https://discuss.dgraph.io/t/will-the-slash-graphql-cli-be-replaced-by-something-similar-for-dgraph-cloud-api/15106/2 "2021-07-27T18:37:32Z")

</div>

There is no **add** and **delete** because a lambda script is always there, it just may be empty and contain no functions.

> [@Slash-Graphql CLI Docs Missing, login and update-lambdas not working](http://discuss.hypermode.com/t/slash-graphql-cli-docs-missing-login-and-update-lambdas-not-working/15045/4):
>
> There is just one lambda. Within that lambda you can have many functions. Use updateLambda to update the contents of all lambda functions, or query the lambdaScript to get the actual script. This is the actual lambda script in your Dgraph Admin console. J

I have not tested or used this, but something like this should work:

> [@Error when trying to use CLI to update Lambdas](http://discuss.hypermode.com/t/error-when-trying-to-use-cli-to-update-lambdas/11770/15):
>
> You’ll need to update to use the new [cloud admin endpoint](https://dgraph.io/docs/cloud/cloud-api/lambda/#update-lambda). Here is a working script that we are using via a husky powered git hook. const fetch = require('node-fetch') const fs = require('fs') async function updateSlashLambdas() { try { fs.readFile('./DgraphLambdas/\_final.js', async function (err, data) { if (err) return console.error(err) const lambdaScript = data.toString('base64') const updateLambdasQuery = `mutation UpdateDeployment($updateDeploymentInput: …

J
