https://netsuiteprofessionals.com logo
#sdf
Title
c

Chris Jones

04/19/2022, 12:51 PM
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

dbarnett

04/19/2022, 2:24 PM
you can go through the
suitecloud account:savetoken
command https://docs.oracle.com/en/cloud/saas/netsuite/ns-online-help/section_159350785187.html
c

Chris Jones

04/19/2022, 2:28 PM
suitecloud account:savetoken
doesnt appear to work to allow me to change to an existing authid
d

dbarnett

04/19/2022, 2:34 PM
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

Chris Jones

04/19/2022, 2:35 PM
message has been deleted
where
Inventory-Status-Dev
is an already existing authid
d

dbarnett

04/19/2022, 2:39 PM
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

Chris Jones

04/19/2022, 2:48 PM
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

dbarnett

04/19/2022, 2:52 PM
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

Ali Syed (NS DevTools QA)

04/27/2022, 1:45 PM
@Chris Jones So you want a way (non-interactive) to set an existing authid as default for the project?
💯 1
c

Chris Jones

04/27/2022, 1:49 PM
@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

Ali Syed (NS DevTools QA)

04/27/2022, 1:51 PM
Currently there are no plans to change the
project.json
structure, but I will bring this usecase to my team!
👍 1