I've figured out that I can change the commitinventory and/or the orderpriority fields on an item line. But that only causes items to commit or uncommit when the Accounting Preferences -> Order Management, PERFORM ITEM COMMITMENT AFTER TRANSACTION ENTRY, is checked.
I know it can be done through the UI via the Commit Orders or Reallocate Items pages. How do I allocate/commit a line item directly from SuiteScript?
.