Open randomir opened 9 months ago
Currently, to fetch a specific project's SAPI token (for use in scripting), one can write:
dwave leap project token --project CODE --json | jq .token -r
and then use it like this, for example, to list available solvers:
DWAVE_API_TOKEN=$(dwave leap project token --project CODE --json | jq .token -r) dwave solvers -la
We can simplify the JSON filtering part, though, by introducing --raw/-r option that returns raw token string:
--raw
-r
$ dwave leap project token --project CODE --raw a66...fe
Similarly for dwave auth get <token-type> command.
dwave auth get <token-type>
Currently, to fetch a specific project's SAPI token (for use in scripting), one can write:
and then use it like this, for example, to list available solvers:
We can simplify the JSON filtering part, though, by introducing
--raw
/-r
option that returns raw token string:Similarly for
dwave auth get <token-type>
command.