is there a way through the node cli to set the aut...
# sdf
c
is there a way through the node cli to set the authid to run commands against not in interactive mode?
right now it seems like I would need to create the project.json file as part of my CI/CD process and within it have the
defaultAuthId
property set to the authId I want to interact with
but that seems clunky
d
you can go through the
suitecloud account:savetoken
command https://docs.oracle.com/en/cloud/saas/netsuite/ns-online-help/section_159350785187.html
c
suitecloud account:savetoken
doesnt appear to work to allow me to change to an existing authid
d
guess i'm not sure your particular use-case, the params for that command let you specify the
authId
you want to use though?
c
message has been deleted
where
Inventory-Status-Dev
is an already existing authid
d
how did you add the AuthId originally locally? for CI you'll have to issue a token and run that cmd with all the required args to setup, or at least that is how we do it
c
the AuthId was created manually on the build server. I was trying to avoid storing the tokenid/tokensecret to be fed into the CI process
d
ah ok gotcha hmm yah i'd think would be able to use the
account:setup
in that case, but looks like unfortunately only supports interactive mode https://docs.oracle.com/en/cloud/saas/netsuite/ns-online-help/section_156044528841.html I guess could file enhancement request on https://github.com/oracle/netsuite-suitecloud-sdk/issues , seems like they're generally pretty responsive/accommodating if request makes sense as a feature
👍 1
a
@Chris Jones So you want a way (non-interactive) to set an existing authid as default for the project?
💯 1
c
@Ali Syed (NS DevTools QA) yes - my current solution is to manually generate the
project.json
file if the authid exists. if for whatever reason the structure of that file changes, then my solution is at risk of breaking. if the api allowed for setting the default authid, then that risk is greatly lowered
👍 1
a
Currently there are no plans to change the
project.json
structure, but I will bring this usecase to my team!
👍 1