mender-api is a Rust library and CLI application for interacting with the Mender API for device management and
software deployments.
- API client for Mender endpoints
- Management of devices, groups, releases, deployments, and tags
- Authentication and session handling
- CLI for common operations
- Configuration via file and arguments
api/— Rust library for the Mender APIcfg/— Configuration modulecli/— Command-line application
git clone https://github.com/PaulmannLighting/mender-api.git
cd mender-api
cargo build --releasecargo run --bin mender-api-cli -- <commands> [options]Add to your Cargo.toml:
mender-api = { path = "./api" }Import and use the library in your Rust project:
use mender_api::{Client, Login};
#[tokio::main]
async fn main() {
let client = Client::new("https://mender.example.com", None, false);
let session = client.login("username", "password").await;
// Use the session to interact with the Mender API.
}Configuration files can be managed in the cfg/ module. See examples in cfg/src/config_file.rs.
Run tests with:
cargo testSee LICENSE for license information.
Pull requests and issues are welcome!