# Lambda | Documentation

**URL:** <https://discuss.dgraph.io/t/lambda-documentation/11888>\
**Category:** Documentation\
**Created:** [December 14, 2020, 2:00pm UTC](https://discuss.dgraph.io/t/lambda-documentation/11888 "2020-12-14T14:00:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![diggy](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/diggy/32/3666_2.png) [@diggy](https://discuss.dgraph.io/u/diggy)\
**Post date:** [December 14, 2020, 2:00pm UTC](https://discuss.dgraph.io/t/lambda-documentation/11888/1 "2020-12-14T14:00:38Z")

</div>

### Get Lambda Script

Get the Lambda script associated with the backend.

USAGE

```
  $ slash-graphql get-lambda

```

OPTIONS

```
  -e, --endpoint=endpoint Slash GraphQL endpoint
  -q, --quiet Quiet output
  -t, --token=token Slash GraphQL backend API tokens

```

EXAMPLES

```
  $ slash-graphql get-lambda -e https://frozen-mango.cloud.dgraph.io/graphql
  $ slash-graphql get-lambda -e 0x1234

```

### Lambda Logs

Get the Lambda logs associated with the backend.

USAGE

```
  $ slash-graphql lambda-logs

```

OPTIONS

```
  -e, --endpoint=endpoint Slash GraphQL endpoint
  -h, --hours=hours [default: 1] Show lambda logs for last given hours. Defaults to 1 hour.
  -q, --quiet Quiet output
  -t, --token=token Slash GraphQL backend API tokens

```

EXAMPLES

```
  $ slash-graphql lambda-logs -e https://frozen-mango.cloud.dgraph.io/graphql
  $ slash-graphql lambda-logs -e 0x1234 -h 5

```

### Update Lambda

Get the Lambda script associated with the backend.

USAGE

```
  $ slash-graphql update-lambda

```

OPTIONS

```
  -e, --endpoint=endpoint Slash GraphQL endpoint
  -f, --file=file (required) Lambda script file path.
  -q, --quiet Quiet output
  -t, --token=token Slash GraphQL backend API tokens

```

EXAMPLES

```
  $ slash-graphql update-lambda -e https://frozen-mango.cloud.dgraph.io/graphql -f <filepath>
  $ slash-graphql update-lambda -e 0x1234 -f /home/user/Downloads/script.js

```

### Delete Lambda

Delete the Lambda script associated with the backend.

USAGE

```
  $ slash-graphql delete-lambda

```

OPTIONS

```
  -e, --endpoint=endpoint Slash GraphQL endpoint
  -q, --quiet Quiet output
  -t, --token=token Slash GraphQL backend API tokens
  -y, --confirm Skip confirmation

```

EXAMPLES

```
  $ slash-graphql delete-lambda -e https://frozen-mango.cloud.dgraph.io/graphql
  $ slash-graphql delete-lambda -e 0x1234

```

* * *
This is a companion discussion topic for the original entry at [https://dgraph.io/docs/slash-graphql/slash-cli/lambda/](https://dgraph.io/docs/slash-graphql/slash-cli/lambda/)
