KosmoKrator

other

Netsuite CLI for Shell Scripts

Use the Netsuite CLI for shell scripts with headless JSON commands, schema discovery, credentials, and permission controls.

7 functions 6 read 1 write Manual OAuth token auth

Netsuite CLI for Shell Scripts

Call integration functions from shell scripts with stable JSON input and output.

Use shell scripts for small local automations that need one or more integration calls. The Netsuite CLI uses the same integration registry as the TUI, Lua runtime, and MCP gateway, but returns predictable command output for automation.

Command Shape

# Netsuite CLI for Shell Scripts
kosmokrator integrations:configure netsuite --set access_token="$NETSUITE_ACCESS_TOKEN" --set url="$NETSUITE_URL" --enable --read allow --write ask --json
kosmo integrations:call netsuite.netsuite_list_customers '{"limit":1,"offset":1}' --json

Discovery Before Execution

Agents and scripts can inspect Netsuite docs and schemas before choosing a function.

kosmo integrations:docs netsuite --json
kosmo integrations:docs netsuite.netsuite_list_customers --json
kosmo integrations:schema netsuite.netsuite_list_customers --json
kosmo integrations:search "Netsuite" --json
kosmo integrations:list --json

Useful Netsuite CLI Functions

FunctionTypeParametersDescription
netsuite.netsuite_list_customers Read limit, offset List customers from NetSuite ERP. Returns customer records with names, IDs, and basic details. Use limit and offset for pagination.
netsuite.netsuite_get_customer Read id Get detailed information for a single NetSuite customer by internal ID. Returns full customer record including contact details, addresses, and financial information.
netsuite.netsuite_create_customer Write companyname, firstname, lastname, email, phone, subsidiary, entitystatus, currency, terms, addressbook Create a new customer in NetSuite ERP. Provide at minimum the company name or first/last name. Additional fields like email, phone, subsidiary, and address can be included.
netsuite.netsuite_list_invoices Read limit, offset List invoices from NetSuite ERP. Returns invoice records with amounts, statuses, customer references, and dates. Use limit and offset for pagination.
netsuite.netsuite_list_sales_orders Read limit, offset List sales orders from NetSuite ERP. Returns sales order records with order details, line items, customer references, and statuses. Use limit and offset for pagination.
netsuite.netsuite_list_items Read limit, offset List items (products and services) from NetSuite ERP. Returns item records with names, IDs, types, and pricing. Use limit and offset for pagination.
netsuite.netsuite_get_current_user Read none Get the profile of the currently authenticated NetSuite user. Returns user details like name, email, role, and subsidiary.

Automation Notes

Related Netsuite CLI Pages