<@UJQEV6HNV> can't answer your question but did yo...
# sdf
j
@Lucas Corvelo can't answer your question but did you get plugin working with tokens? Or maybe I should ask what plugin your using I tried to use the one in the Windows marketplace but haven't been able to get token auth to work
l
I'm using this one here
and yes, I already configured the token
j
That's what I tried to use. I generated the token in NetSuite and then tried to do savetoken op and the plugin is still trying to authenticate with a password. Also do you have a sandbox account can't connect to that at all.
l
The token part is working
After I saved the token, when I make any command it shows a message "using token based authentication"
Without the token it shows a message "using user credentials"
I'm having problem with -p and -destinationfolder paramethers even in the java cli 😠
j
So you did the save token op provided the key and the secret correct?
This is what I get
l
Yes, I saved the token using the correct token secret and key
j
[INFO] Scanning for projects... [INFO] [INFO] ------------------------< com.netsuite:sdf-cli >------------------------ [INFO] Building SDF CLI 2018.2.1 [INFO] --------------------------------[ jar ]--------------------------------- [INFO] [INFO] --- exec-maven-plugin1.5.0java (default-cli) @ sdf-cli --- SuiteCloud Development Framework CLI (com.netsuite.ide.core_2018.2.1) Invalid option "-tokenid".
Any suggestions
l
I just run the command save token and it worked haha
Without token configured
message has been deleted
j
What version of the sublime-sdf do you have is it 2018.2?
l
after token is saved
b
@chris
l
sublime-sdf?
is vscode 🤔
b
there are a bunch of chris but i think thats the one that wrote the vs code plugin
c
hello!
let me catch up.. is something wrong with the plugin?
ah, yeah, update sdfcli to 2019.2 or latest
j
@chris could use some help would love to try and use you VS code extension...don't know if I've installed something wrong but can't get token auth working....
l
Yes haha
j
What's the proper install procedure, and maybe uninstall at this point
c
at the moment i do not bundle SDFCLI or version the plugin to match the older arguments
are you running Windows or Mac? you can just run
brew cask install sdfsdk
or update
if you’re using a Mac
j
Thanks trying now.
Error: Cask 'sdfsdk' is unavailable: No Cask with this name exists.
j
Tried the instructions on your page
Error: No available formula with the name "limebox/netsuite/sdfsdk"  ==> Searching for a previously deleted formula (in the last month)... Warning: limebox/netsuite is shallow clone. To get complete history run:  git -C "$(brew --repo limebox/netsuite)" fetch --unshallow Error: No previously deleted formula found. ==> Searching for similarly named formulae... Error: No similarly named formulae found.
c
uh oh, that’s not good
Copy code
sdfcli savetoken -account 1234567 -email <mailto:you@email.com|you@email.com> -role 3 -tokenid XXXX -tokensecret XXXX -url <http://system.na1.netsuite.com|system.na1.netsuite.com>
as i told @Lucas Corvelo, your info has to perfectly match the
.sdfcli.json
file
but if you can’t install via cask, you’ll have to overwrite the CLI binary yourself
can you run
which sdfcli
? @JohnnyC
j
In the VS code it's saying 2018.2
Can you use account specfic URLs in .sdfcli.json
c
yep.
Copy code
{
  "projectName": "ProjectName",
  "environments": [
    {
      "name": "Sandbox",
      "account": "00000000",
      "url": "<http://system.sandbox.netsuite.com|system.sandbox.netsuite.com>",
      "role": 3,
      "email": "<mailto:email@address.com|email@address.com>"
    },
    {
      "name": "Production",
      "account": "00000000",
      "url": "<http://system.netsuite.com|system.netsuite.com>",
      "role": 3,
      "email": "<mailto:email@address.com|email@address.com>"
    }
  ]
}
j
I meant in the url parameter something like 123456.app.netsuite.com
and the account number as an example would be 123456_SB1 for a sandbox?
b
if you are talking about your equivalent to the .sdf file, then the values for account, emal, role, and url should match whatever you saved for your token
its how the cli looks up tokens from cli cache
👍 1
c
yep. it’s a unique key to value match.
j
Finally some success!. Uninstalled 2018.2 sdfcli that came from limebox/netsuite/sdfsdk@2018.2, downloaded the sdfcli from Oracle, update PATH variable re-generated tokens and we're good. @chris Thanks for the VS Code extension I would maybe just update the install doc to not include 'limebox/netsuite/sdfsdk' as it doesn't work and it appears it's not needed.
If the sdfcli is already present from NetSuite
c
Can you make a Pull Request 😄
j
Not sure you want that. I'm not an active contributor on github. Yes I use git for company customizations but those are in private repositories. I know shame on me...😁