nextstrain authorization

Produce an Authorization header appropriate for’s web API.

This is a development tool unnecessary for normal usage. It’s useful for directly making API requests to with curl or similar commands. For example:

curl -si \
    --header "Accept: application/json" \
    --header @<(nextstrain authorization)

Exits with an error if no one is logged in.

usage: nextstrain authorization [-h]