Skip to content

Commit

Permalink
docs: add video-cli example usage
Browse files Browse the repository at this point in the history
  • Loading branch information
chipsTM committed Jan 31, 2024
1 parent d4e860c commit f401125
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -240,11 +240,25 @@ uri = "postgres://root@localhost:5432/scuffle_video"
cargo run --bin video-api -- --config-file local/video-api-config.toml
```

You will need to generate organization id and access token via the video-cli

Create an organization

```bash
cargo run --bin video-cli -- --config-file local/video-api-config.toml organization create --name <org_name>
```

Create an access token using the organization id just generated

```bash
cargo run --bin video-cli -- --config-file local/video-api-config.toml --organization-id XXXXXXXXXXXXXXXXXXXXXXXXXX access-token create --scopes all:admin
```

### Platform API

Create a local/platform-api-config.toml

You will need to generate organization id and access token via the video-cli
Add the ids you generated in previous step

```toml
[grpc]
Expand Down

0 comments on commit f401125

Please sign in to comment.