# cli
## Module Functions
### Check for CLI Updates <a name="check_updates"></a>
Checks if a given CLI has updates or notices
**API Endpoint**: `GET /cli/updates/{cli_version}`
#### Parameters
| `cli_version` | ✓ | semver of running cli | `"0.1.0".to_string()` |
#### Example Snippet
```rust
let client = sideko_rest_api::SidekoClient::default()
.with_api_key_auth(&std::env::var("API_KEY").unwrap())
.with_cookie_auth(&std::env::var("API_KEY").unwrap());
let res = client
.cli()
.check_updates(sideko_rest_api::resources::cli::CheckUpdatesRequest {
cli_version: "0.1.0".to_string(),
})
.await;
```
#### Response
##### Type
Vec of [CliUpdate](/src/models/cli_update.rs)
##### Example
```rust
vec![CliUpdate {message: "Requires update to 0.2.0 for security patch".to_string(), severity: CliUpdateSeverityEnum::Info}]
```