other
Netsuite CLI for Cron Jobs
Use the Netsuite CLI for cron jobs with headless JSON commands, schema discovery, credentials, and permission controls.
7 functions 6 read 1 write Manual OAuth token auth
Netsuite CLI for Cron Jobs
Schedule repeatable integration workflows from cron while keeping credentials in KosmoKrator config.
Use the headless CLI from cron when an operation should run without an interactive agent session. 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 Cron Jobs
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
| Function | Type | Parameters | Description |
|---|---|---|---|
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
- Use
--jsonfor machine-readable output. - Keep credentials out of argv by using environment variables or stored KosmoKrator configuration.
- Configure read/write policy before unattended runs; use
--forceonly for trusted automation. - Use the MCP gateway instead when the agent needs dynamic tool discovery inside a conversation.