Thanks <@U9CS7LVCN>. Were you also able to install...
# sdf
g
Thanks @scottvonduhn. Were you also able to install sdfcli by chance? I’ve been using sdfcli along christopherwxyz’s VS Code extension in windows and I’d like to maintain the same workflow if possible. Thanks
d
hi @Gustavo Doná i have managed to install https://marketplace.visualstudio.com/items?itemName=christopherwxyz.netsuitesdf , also prior to this i have installed suitecloud-cli. It's working fine, i can run
suitecloud project:validate
for example from command prompt, but from VS code when i run
SDF:Validate Project
it gives me
'sdfcli' not found in path. Please restart VS Code if you installed it.
In readme file, where should i put
.sdfcli.json
file ? I cannot find this file within my project, not sure if whether i can run suitecloud from command prompt then i should ignore this. Your guidance is appreciated
g
Hi @dennysutanto. I also have the same issue actually 😅 @Ali Syed (NS DevTools QA) do you know how we could add sdfcli to PATH so it can run anywhere, by chance? Thank you so much
d
oo 😅
i came across another vs code extension
Netsuite Upload
, I miss the
ctrl+u
feature in eclipse, where we can upload single file straight to file cabinet, I believe this is very useful during development in sandbox, compare to SDF where we have to get everything ready then do
project:deploy
In my opinion both are useful feature, where i still cannot find in single VS code extension, hope to have extension which is a merge of SDF + Upload single file
g
I like more SDF, after I started using it I'd create a mini-project for every customization I'd need to do. Pretty straight forward when you also add git versioning on top of it.
d
in our current File Cabinet/Suitescripts folder, we have many js files and we have them all in bitbucket as well. when you say mini-project, you mean that you will only pull certain files into your vscode, make changes and deploy using sdf ?
a
@Gustavo Doná I actually have never tried this extension on VSCode. So no idea about the config. Try running the commands on SuiteCloud CLI for NodeJS by adding
-i
at the end of any command. Its pretty easy to use For example
suitecloud project:create -i
suitecloud project:deploy -i
suitecloud file:upload -i
d
-i = interactive ?
a
yes
d
yes, @Ali Syed (NS DevTools QA), suitecloud has helped me a lot, making deployment to Production faster then copying files , creating fields one by one. Since i'm using VSCode, i'm looking at a possibilities to be able to execute suitecloud commands within VS code
a
You can use the SuiteCloud in terminal of VSCode. While having the project open in VSCode.
message has been deleted
d
yes, right. This is something that i need to further checking, for some reason i'm not able to do that, something like permission issues But what i'm looking at ultimately, is VSCode extension that can do this for me. There is 1 feature that i think will be very helpful at least for me in sandbox during development, where I would like to upload single file which is active in my editor straight to file cabinet in NS Is this something that suitecloud-cli supports ? What i understand is that we have to configure the folder in which we want to deploy from, like from my screenshot below is
dist
folder. Am i doing this correctly or is there another way to achieve this ?
mine is like this @Ali Syed (NS DevTools QA)
a
If all your operations are going to be from
dist
you can set default project =
dist
Then simply run
suitecloud file:upload -i
it should show you the available files to upload from your default folder
@dennysutanto By the way the official extension for VSCode is on it's way. Hopefully in matter of weeks.
d
wow! amazing
i cannot wait
i'll be the first to install it haha
no, my operations are not in dist, My operation is outside dist folder. the dist folder is only used to deploy file which are changed. That dist folder is not pushed to our repo
btw how do i get the update once the official extension is ready ? do i have to subscribe to something ?
a
We will announce here.
The default folder has to be a
dir
where you have a valid manifest and deploy.xml
try it with
src
and when you run the command
suitecloud file:upload -i
it should show you files from src
If you are having issues, we can have a quick call.
d
this is my folder structure, all .js files are under FileCabinet/Suitescripts every file changed, i have to move manually to dist folder, then execute
project:deploy
a
This is not according to the Node project structure. If you run the upload command what do you see?
d
you mean
suitecloud project:deploy
command ?
a
no
suitecloud file:upload -i
This is used when you dont want to deploy the project but just upload single or multiple SuiteScript files to account
d
ah... i didn't know such command exist
let me try it now
a
Check this, i have a
src
and
dist
for example i can set the preferences like for a particular command which directory should be used.
d
this is what i see
a
Yes, now you can select the folder where your file exists. and then select the file in next step and upload to account
d
ic, so with this i don't have to move my 'changed file' to 'dist' folder right ?
a
Yes if you have configured the suitecloud.config.json properly, and you are sure which files you are uploading. Then it should be ok. I suggest you should try in a test account first to verify.
d
i forgot how did i do the config, but currently suitecloud project:deploy will go and take everything from my current 'dist' folder and deploy to NS i never use file:upload before, will start to use this
yes will do, i will test in our sandbox account
a
In the screenshot you sent, project:deploy is configured to read
dist
d
ic
i'm not sure what you mean by this
Copy code
Check this, i have a src and dist for example
i can set the preferences like for a particular command which directory should be used.
do you mean for example project:deploy --->> source from dist folder file:upload ---->> source from src folder ?
a
It was just an example according to what i understood you wanted to do. You wanted to upload files directly to NS without moving it to
dist
folder So i was showing an example that if you have files which are not in
dist
, You can specify the folder in config for upload, so when you run the upload command, it will show you the files to upload from the configured folder and not dist.
d
great, understood
a
It totally depends on your needs and what your workflow is. KEEP in mind that this workflow is for AccountCustomisationProjects For SuiteApps its a bit tricky
If your working with Account Customization then it fine.
d
ic, so far i never work with suiteapps, yet
it's very nice to have this conversation, thanks for your time explaining very detail on this. really appreciate it. I will sure try this workflow in our sandbox
a
Happy to help.
d
🙏