当前位置:首页 > 操作系统 > MacOs

How to use NetSuite SDF CLI, CLI for Node.js on Mac

Installation

  1. 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.

    account:manageauth

    Manages authentication IDs (authid) for all your projects.

    account:setup

    Set up an account to use with the SuiteCloud CLI for Node.js.

    This command only supports interactive mode.

    config:proxy

    Configure a proxy server.

    file:import

    Import files from an account to your account customization project.

    file:list

    Lists the files in the File Cabinet of your account.

    file:upload

    Uploads files from your project to an account.

    object:import

    Import custom objects from an account to your SuiteCloud project.

    object:list

    List the custom objects deployed in an account.

    object:update

    Overwrite the custom objects in the project with the custom objects in an account.

    project:adddependencies

    Adds missing dependencies to the manifest file.

    project:create

    Create a SuiteCloud project, either a SuiteApp or an account customization project (ACP).

    project:deploy

    Deploy the folder containing the project.

    project:package

    Generates a ZIP file from your project, respecting the structure specified in the deploy.xml file, and applying local validation.

    project:validate

    Validate the folder containing the SuiteCloud project.

    suitecommerce:localserver

    Generate a local server of your SuiteCommerce extensions and themes.

 Sample

  1. 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.

 

  1. suitecloud object:import -i

The following objects have been imported:

- customrecordtype:

- usereventscript:

- Referenced SuiteScript files:

 

  1. suitecloud project:adddependencies
    •   Added dependencies to profile
  2. suitecloud account:setup
    •   Setup login, 2FA, Token, for target NetSuite Account
  3. suitecloudproject:deploy
    •   Deploy imported elements to target NetSuite Account
?
【说明】本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:254677821)!

相关教程推荐

其他课程推荐