in savetoken Java CLI, there is an option "authid"...
# sdf
d
in savetoken Java CLI, there is an option "authid", it's not clear to me on the documentation, what is this actually ? is this something that i set when i create user token from Netsuite page ? another one is the "url" option, where can i get the url from ? is it the same url that i see in my browser after i login ?
a
It's an alias. You can give it a name to the authentication so you can use that same alias in the future
Url is not mandatory and will be deprecated soon
d
@Albert Margarit (NS Eng Lead) Thanks for clarifying. I just tried
sdfcli savetoken -account xxxxx_SB1 -authid sandboxDev
and the response is
Invalid option "-authid".
I'm using cli-2020.1.1.jar , i suppose the authid is deprecated as well ?
a
If you use authid, I believe you don't need account
The CLI will figure out the account for you (if I remember correctly)
a
If you just run
sdfcli authenticate -authid xyz
this will open web Authentication
@dennysutanto The confusion with
savetoken
command is that right now we are supporting old and new methods to save token. The command you mentioned above will not work as its a mixture of new and old structure. The old was (soon to be deprecated):
Sdfcli savetoken -tokenid -tokensecret
-account -url
etc. This doesn't support authid The new command structure with authid
Sdfcli authenticate -savetoken - authid xyz -tokenid xys -tokensecret
xyx -account
👍 1
d
@Ali Syed (NS DevTools QA) noted, i will give the authenticate a try