Closed willmoffat closed 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:
Create ./usertoken
./usertoken
LOGIN=will@muuselabs.com PASS=xxx SERVICE=https://mender.muuselabs.com mender-backend -s $SERVICE user login -u $LOGIN -p $PASS
mender-backend -u usertoken -s $SERVICE artifact list
mender-backend -u usertoken -s $SERVICE deployment find '*' > deployments.json
cat deployments.json | jq '.[] | {name, status, artifact_name, finished}'
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
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
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}'