↳
In-reply-to
»
can I post on yarn through curl?
⤋ Read More
To securely login and authenticate to the API and set YARND_TOKEN
env var for later use:
IFS= read -rsp 'Password: ' password; payload="$(jq -cnr --arg password "$password" '{username: "admin", "password": $password}')"; export YARND_TOKEN="$(curl -s -d "$payload" http://localhost:8000/api/v1/auth | jq -r '.token')"