bboozzoo / mender-backend-cli

[ARCHIVED] cli tools for mender backend, use https://github.com/mendersoftware/mender-backend-cli instead
MIT License
3 stars 12 forks source link

Getting started guide #8

Closed willmoffat closed 6 years ago

willmoffat commented 6 years ago

Would be great to having a getting started section, it took me a while to figure out the login flow and the position of parameters.

Something like this perhaps:

Getting started

Login

Create ./usertoken

LOGIN=will@muuselabs.com
PASS=xxx
SERVICE=https://mender.muuselabs.com 
mender-backend -s $SERVICE user login -u $LOGIN -p $PASS

List artifacts

mender-backend -u usertoken -s $SERVICE artifact list

List deployments

mender-backend -u usertoken -s $SERVICE deployment find '*' > deployments.json

Use jq to filter output:

cat deployments.json | jq '.[] | {name, status, artifact_name, finished}'

bboozzoo commented 6 years ago

Thanks for the report. Unfortunately I no longer work on mender, see here for further instructions https://github.com/bboozzoo/mender-backend-cli/issues/9#issuecomment-342393165