Skip to content
This repository was archived by the owner on Apr 24, 2021. It is now read-only.

Commit fa85a1a

Browse files
author
antblood
committed
1.15.1
1 parent 4d03a19 commit fa85a1a

File tree

3 files changed

+44
-16
lines changed

3 files changed

+44
-16
lines changed

README.md

+42-14
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ $ npm install -g slash-graphql
2020
$ slash-graphql COMMAND
2121
running command...
2222
$ slash-graphql (-v|--version|version)
23-
slash-graphql/1.15.0 darwin-x64 node-v14.9.0
23+
slash-graphql/1.15.1 darwin-x64 node-v14.9.0
2424
$ slash-graphql --help [COMMAND]
2525
USAGE
2626
$ slash-graphql COMMAND
@@ -33,6 +33,7 @@ USAGE
3333
<!-- commands -->
3434
* [`slash-graphql deploy-backend NAME`](#slash-graphql-deploy-backend-name)
3535
* [`slash-graphql destroy-backend ID`](#slash-graphql-destroy-backend-id)
36+
* [`slash-graphql drop`](#slash-graphql-drop)
3637
* [`slash-graphql export-data OUTPUTDIR`](#slash-graphql-export-data-outputdir)
3738
* [`slash-graphql get-schema [FILE]`](#slash-graphql-get-schema-file)
3839
* [`slash-graphql help [COMMAND]`](#slash-graphql-help-command)
@@ -72,7 +73,7 @@ EXAMPLE
7273
$ slash-graphql deploy-backend "My New Backend"
7374
```
7475

75-
_See code: [src/commands/deploy-backend.ts](https://github.com/dgraph-io/slash-graphql-cli/blob/v1.15.0/src/commands/deploy-backend.ts)_
76+
_See code: [src/commands/deploy-backend.ts](https://github.com/dgraph-io/slash-graphql-cli/blob/v1.15.1/src/commands/deploy-backend.ts)_
7677

7778
## `slash-graphql destroy-backend ID`
7879

@@ -93,7 +94,34 @@ EXAMPLE
9394
$ slash-graphql destroy-backend "0xid"
9495
```
9596

96-
_See code: [src/commands/destroy-backend.ts](https://github.com/dgraph-io/slash-graphql-cli/blob/v1.15.0/src/commands/destroy-backend.ts)_
97+
_See code: [src/commands/destroy-backend.ts](https://github.com/dgraph-io/slash-graphql-cli/blob/v1.15.1/src/commands/destroy-backend.ts)_
98+
99+
## `slash-graphql drop`
100+
101+
Drop all data in your backend
102+
103+
```
104+
USAGE
105+
$ slash-graphql drop
106+
107+
OPTIONS
108+
-F, --drop-fields=drop-fields Drop types
109+
-T, --drop-types=drop-types Drop types
110+
-d, --drop-data Drop data and leave the schema
111+
-e, --endpoint=endpoint Slash GraphQL Endpoint
112+
-l, --list-unused List unused types and fields
113+
-q, --quiet Quiet Output
114+
-s, --drop-schema Drop Schema along with the data
115+
-t, --token=token Slash GraphQL Backend API Tokens
116+
-u, --drop-unused Drops all unused types and fields
117+
-y, --confirm Skip Confirmation
118+
119+
EXAMPLE
120+
$ slash-graphql drop -e https://frozen-mango.cloud.dgraph.io/graphql -t <apiToken> [-l] [-d] [-s] [-T <types>] [-F
121+
<fields>]
122+
```
123+
124+
_See code: [src/commands/drop.ts](https://github.com/dgraph-io/slash-graphql-cli/blob/v1.15.1/src/commands/drop.ts)_
97125

98126
## `slash-graphql export-data OUTPUTDIR`
99127

@@ -115,7 +143,7 @@ EXAMPLE
115143
$ slash-graphql export-data -e https://frozen-mango.cloud.dgraph.io/graphql -t <apiToken> ./output-directory
116144
```
117145

118-
_See code: [src/commands/export-data.ts](https://github.com/dgraph-io/slash-graphql-cli/blob/v1.15.0/src/commands/export-data.ts)_
146+
_See code: [src/commands/export-data.ts](https://github.com/dgraph-io/slash-graphql-cli/blob/v1.15.1/src/commands/export-data.ts)_
119147

120148
## `slash-graphql get-schema [FILE]`
121149

@@ -140,7 +168,7 @@ EXAMPLES
140168
$ slash-graphql get-schema -e https://frozen-mango.cloud.dgraph.io/graphql -t <apiToken> -g
141169
```
142170

143-
_See code: [src/commands/get-schema.ts](https://github.com/dgraph-io/slash-graphql-cli/blob/v1.15.0/src/commands/get-schema.ts)_
171+
_See code: [src/commands/get-schema.ts](https://github.com/dgraph-io/slash-graphql-cli/blob/v1.15.1/src/commands/get-schema.ts)_
144172

145173
## `slash-graphql help [COMMAND]`
146174

@@ -180,7 +208,7 @@ EXAMPLE
180208
$ slash-graphql import-data -e https://frozen-mango.cloud.dgraph.io/graphql -t <apiToken> ./import-directory
181209
```
182210

183-
_See code: [src/commands/import-data.ts](https://github.com/dgraph-io/slash-graphql-cli/blob/v1.15.0/src/commands/import-data.ts)_
211+
_See code: [src/commands/import-data.ts](https://github.com/dgraph-io/slash-graphql-cli/blob/v1.15.1/src/commands/import-data.ts)_
184212

185213
## `slash-graphql list-backends`
186214

@@ -206,7 +234,7 @@ EXAMPLES
206234
$ slash-graphql list-backends --csv
207235
```
208236

209-
_See code: [src/commands/list-backends.ts](https://github.com/dgraph-io/slash-graphql-cli/blob/v1.15.0/src/commands/list-backends.ts)_
237+
_See code: [src/commands/list-backends.ts](https://github.com/dgraph-io/slash-graphql-cli/blob/v1.15.1/src/commands/list-backends.ts)_
210238

211239
## `slash-graphql list-backups`
212240

@@ -225,7 +253,7 @@ EXAMPLE
225253
$ slash-graphql list-backups -e https://frozen-mango.cloud.dgraph.io/graphql -t <apiToken>
226254
```
227255

228-
_See code: [src/commands/list-backups.ts](https://github.com/dgraph-io/slash-graphql-cli/blob/v1.15.0/src/commands/list-backups.ts)_
256+
_See code: [src/commands/list-backups.ts](https://github.com/dgraph-io/slash-graphql-cli/blob/v1.15.1/src/commands/list-backups.ts)_
229257

230258
## `slash-graphql login`
231259

@@ -242,7 +270,7 @@ EXAMPLE
242270
$ slash-graphql login
243271
```
244272

245-
_See code: [src/commands/login.ts](https://github.com/dgraph-io/slash-graphql-cli/blob/v1.15.0/src/commands/login.ts)_
273+
_See code: [src/commands/login.ts](https://github.com/dgraph-io/slash-graphql-cli/blob/v1.15.1/src/commands/login.ts)_
246274

247275
## `slash-graphql logout`
248276

@@ -261,7 +289,7 @@ EXAMPLES
261289
$ slash-graphql logout -a
262290
```
263291

264-
_See code: [src/commands/logout.ts](https://github.com/dgraph-io/slash-graphql-cli/blob/v1.15.0/src/commands/logout.ts)_
292+
_See code: [src/commands/logout.ts](https://github.com/dgraph-io/slash-graphql-cli/blob/v1.15.1/src/commands/logout.ts)_
265293

266294
## `slash-graphql restore-backend`
267295

@@ -283,7 +311,7 @@ EXAMPLE
283311
url>
284312
```
285313

286-
_See code: [src/commands/restore-backend.ts](https://github.com/dgraph-io/slash-graphql-cli/blob/v1.15.0/src/commands/restore-backend.ts)_
314+
_See code: [src/commands/restore-backend.ts](https://github.com/dgraph-io/slash-graphql-cli/blob/v1.15.1/src/commands/restore-backend.ts)_
287315

288316
## `slash-graphql restore-backend-status RESTOREID`
289317

@@ -305,7 +333,7 @@ EXAMPLE
305333
$ slash-graphql restore-backend-status -e https://clone.cloud.dgraph.io/graphql -t <apiToken> "restoreID"
306334
```
307335

308-
_See code: [src/commands/restore-backend-status.ts](https://github.com/dgraph-io/slash-graphql-cli/blob/v1.15.0/src/commands/restore-backend-status.ts)_
336+
_See code: [src/commands/restore-backend-status.ts](https://github.com/dgraph-io/slash-graphql-cli/blob/v1.15.1/src/commands/restore-backend-status.ts)_
309337

310338
## `slash-graphql update [CHANNEL]`
311339

@@ -339,7 +367,7 @@ EXAMPLE
339367
$ slash-graphql update-backend -n "New Name" 0xid
340368
```
341369

342-
_See code: [src/commands/update-backend.ts](https://github.com/dgraph-io/slash-graphql-cli/blob/v1.15.0/src/commands/update-backend.ts)_
370+
_See code: [src/commands/update-backend.ts](https://github.com/dgraph-io/slash-graphql-cli/blob/v1.15.1/src/commands/update-backend.ts)_
343371

344372
## `slash-graphql update-schema [FILE]`
345373

@@ -361,5 +389,5 @@ EXAMPLE
361389
$ slash-graphql update-schema -e https://frozen-mango.cloud.dgraph.io/graphql -t <apiToken> schema-file.graphql
362390
```
363391

364-
_See code: [src/commands/update-schema.ts](https://github.com/dgraph-io/slash-graphql-cli/blob/v1.15.0/src/commands/update-schema.ts)_
392+
_See code: [src/commands/update-schema.ts](https://github.com/dgraph-io/slash-graphql-cli/blob/v1.15.1/src/commands/update-schema.ts)_
365393
<!-- commandsstop -->

package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "slash-graphql",
33
"description": "Command Line Tools to Manage Slash GraphQL",
4-
"version": "1.15.0",
4+
"version": "1.15.1",
55
"author": "Dgraph Labs @dgraphlabs",
66
"bin": {
77
"slash-graphql": "./bin/run"

0 commit comments

Comments
 (0)