Skip to content

Commit

Permalink
fix: Update readme to simplify using CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
CodingBoulderingRepeat committed Oct 9, 2023
1 parent e207e33 commit e1ebf66
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,26 +52,35 @@ fmt.Println(response)

### CLI

#### Build

First you need to build the CLI - to create the monta CLI executable. Assuming you are on root level of the project:

```
$ cd cmd/monta
$ go build
```

#### Login

```
$ monta login --client-id <ID> --client-secret <SECRET>
$ ./monta login --client-id <ID> --client-secret <SECRET>
```

#### `GET /v1/auth/me`

```
$ monta me
$ ./monta me
```

#### `GET /v1/sites`

```
$ monta sites
$ ./monta sites
```

#### `GET /v1/charge-points`

```
$ monta charge-points
$ ./monta charge-points
```

0 comments on commit e1ebf66

Please sign in to comment.