Installation
-
Java SE Development Kit — CLI for Node.js requires Oracle JDK version 11.
- If you find your JAVA JDK version is not yet 11, you can download it from: https://www.oracle.com/java/technologies/javase-jdk11-downloads.html
-
Node.js — CLI for Node.js requires Node.js version 12.14.0 LTS or greater.
- If you find your Node version is not yet 12.14.0, you can install it by Terminal: npm install -g @oracle/suitecloud-cli.
- Notes:
This package has installed:
? Node.js v12.14.0 to /usr/local/bin/node
? npm v6.13.4 to /usr/local/bin/npm
Make sure that /usr/local/bin is in your $PATH.
How to run SDF CLI for Node.js
-
MacOS tools
- Terminal (Mac build-in)
- iTerm2
-
CLI for Node.js Commands
suitecloud <command> <option> <argument>
Command
Description
account:ci
Set up an account to use with the SuiteCloud CLI for Node.js.
This command only supports non-interactive mode.
Manages authentication IDs (authid) for all your projects.
Set up an account to use with the SuiteCloud CLI for Node.js.
This command only supports interactive mode.
Configure a proxy server.
Import files from an account to your account customization project.
Lists the files in the File Cabinet of your account.
Uploads files from your project to an account.
Import custom objects from an account to your SuiteCloud project.
List the custom objects deployed in an account.
Overwrite the custom objects in the project with the custom objects in an account.
Adds missing dependencies to the manifest file.
Create a SuiteCloud project, either a SuiteApp or an account customization project (ACP).
Deploy the folder containing the project.
Generates a ZIP file from your project, respecting the structure specified in the deploy.xml file, and applying local validation.
Validate the folder containing the SuiteCloud project.
Generate a local server of your SuiteCommerce extensions and themes.
Sample
- suitecloud account:setup
Application SuiteCloud IDE & CLI would like to access your account XXX (DEV) as Administrator <carl.zeng@.com>
The authentication process will continue in your SuiteCloud SDK application. Close this window and go to your application to check the progress of the process.
- suitecloud object:import -i
The following objects have been imported:
- customrecordtype:
- usereventscript:
- Referenced SuiteScript files:
- suitecloud project:adddependencies
- Added dependencies to profile
- suitecloud account:setup
- Setup login, 2FA, Token, for target NetSuite Account
- suitecloudproject:deploy
- Deploy imported elements to target NetSuite Account
【说明】:本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:254677821)!