https://github.com/remibardon/clever-cloud-logs-cli
clever-cloud-logs is a CLI created to stream Clever Cloud app logs in a terminal.
https://github.com/remibardon/clever-cloud-logs-cli
clever-cloud cli oauth1 oauth1-client rust sse
Last synced: 8 months ago
JSON representation
clever-cloud-logs is a CLI created to stream Clever Cloud app logs in a terminal.
- Host: GitHub
- URL: https://github.com/remibardon/clever-cloud-logs-cli
- Owner: RemiBardon
- Created: 2020-10-11T18:12:17.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-10-13T08:58:43.000Z (over 5 years ago)
- Last Synced: 2025-02-13T06:18:21.134Z (over 1 year ago)
- Topics: clever-cloud, cli, oauth1, oauth1-client, rust, sse
- Language: Rust
- Homepage:
- Size: 86.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# clever-cloud-logs
`clever-cloud-logs` is a [CLI](https://en.wikipedia.org/wiki/Command-line_interface) created to stream [Clever Cloud](https://www.clever-cloud.com/) app logs in a terminal.
## Usage
```sh
clever-cloud-logs --consumer_key --consumer_secret
```
* `APP_ID` is your "Application ID", found in the [Console](https://console.clever-cloud.com/) header, or in the "Information" section of your app.
* `OAUTH_CONSUMER_KEY` is a [OAuth 1.0](https://oauth.net/core/1.0/) consumer key used for [Clever Cloud API](https://www.clever-cloud.com/doc/clever-cloud-apis/cc-api/) authentication. For more information, visit the ["Authentication" section of the docs](https://www.clever-cloud.com/doc/clever-cloud-apis/cc-api/#-create-consumers-tokens-).
* `OAUTH_CONSUMER_SECRET` is a [OAuth 1.0](https://oauth.net/core/1.0/) consumer secret used for [Clever Cloud API](https://www.clever-cloud.com/doc/clever-cloud-apis/cc-api/) authentication. For more information, visit the ["Authentication" section of the docs](https://www.clever-cloud.com/doc/clever-cloud-apis/cc-api/#-create-consumers-tokens-).
## Requirements
* [Rust](https://www.rust-lang.org/) (developed and tested with [Rust 1.47.0 stable](https://blog.rust-lang.org/2020/10/08/Rust-1.47.html))
## Installation
```sh
git pull https://github.com/RemiBardon/clever-cloud-logs
cargo run -- --consumer_key --consumer_secret
```
> All of the trailing arguments are passed to the binary to run. If you're passing arguments to both Cargo and the binary, the ones after `--` go to the binary, the ones before go to Cargo.