README
How do I get set up?
Summary of set up
Found in the npm repositories, this is a node plugin that help make developing on Netsuite easier: netsuite-dev-tools
- To use npm, you need to install Node
- Install the npm version 4.6.1 (Type in terminal
npm i -g npm@4.6.1
) - Install the plugin globally
npm i -g netsuite-dev-tools
- Go into the directory the plugin is installed to (console will tell you which folder, for Macs it is in /usr/local/lib/node_modules/netsuite-dev-tools)
- Copy the config.json file from the repo to replace the one in the directory
- Make the config file have 755 permissions
chmod 755 config.json
Configuration
How to use the plugin:
- Type in terminal in the directory of your scripts (usually ns-integration-scripts):
netsuite s scriptname.js -commands -sub-commands
- Supported commands:
- -h → more detailed reference of commands
- -x → execute script
- -u → upload script file to replace the one on Netsuite
- -c → watch the status of the script (pending, processing, complete/failed) intermittently
- -l [#] → Print script execution log of script file. (Optionally provide number of log entries (#))
- -d → download the script file from Netsuite (possibly replacing local file)
- Sub-commands:
- -i → run the specified deploymentID for that script
- ex.
netsuite s scriptname.js -xc -i deploymentID
- ex.
- -i → run the specified deploymentID for that script
- Supported commands:
- Type in terminal in any directory to create a sales order
netsuite c -commands
- Supported commands:
- -s → add small ticket item
- -S → add small ticket QR item
- -b → add big ticket item
- -B → add big ticket QR item
- -d → add small ticket drop ship item
- -r → add small ticket drop ship item (different vendor)
- -t → make order ship to store
- Supported commands:
- To open a list of the items available to create the sales order
netsuite items
- To reinstall the plugin from the npm repositories
netsuite up
- To open the config.json file
netsuite config
- To list out a certain objectType
netsuite l <ObjectType> -commands
- Supported ObjectTypes:
- deployments
- -s <scriptname.js> → list of script
- ex.
netsuite l deployments -s scriptname
- ex.
- -s <scriptname.js> → list of script
- deployments
- Supported ObjectTypes:
Who do I talk to?
- Aleks Stefanovic
- Zamiul Haque
- Angela Gu