Using SuiteCloud Developer Assistant in Cline CLI
SuiteCloud Developer Assistant can be used in CLI-based AI coding assistants that support OpenAI-compatible providers, such as Cline CLI. The CLI connects to the local SuiteCloud proxy started through SuiteCloud CLI. You can ask SuiteCloud Developer Assistant to:
-
Explain SuiteScript modules
-
Generate SuiteQL queries
-
Refactor SuiteScript code
-
Create script templates
-
Help troubleshoot errors
The tool has been tested with Cline CLI, and this configuration has been validated during testing.
Prerequisites
Before configuring Cline CLI, you must ensure that the following prerequisites are met:
-
Complete the SuiteCloud proxy setup and API key generation described in Setting Up SuiteCloud Developer Assistant with Other Third-Party Tools and AI Coding Assistants.
-
Install Cline CLI. To do this, run
npm install -g clinein your terminal.
To use SuiteCloud Developer Assistant with Cline CLI:
-
Open your terminal and run the following command:
cline auth -p openai -k YOUR_API_KEY -b http://127.0.0.1:<port>/api/internal/devassist -m NetSuiteIn this command:
-
-p openaienables the OpenAI-compatible provider mode. -
-kspecifies the API key you obtained earlier. -
-bspecifies the base URL you obtained earlier. -
-moptionally specifies the model ID to use. The example usesNetSuite, which is currently the supported model ID.
-
-
Go to your SuiteCloud project.
-
Open your terminal and type
cline. The Cline popup window appears. -
Verify the connection. Open a SuiteScript file and run a prompt such as "Explain this SuiteScript file". If the configuration is successful, the CLI responds using SuiteCloud Developer Assistant through the local SuiteCloud proxy.
Troubleshooting the CLI-Based Tools Usage
|
Issue |
Cases |
Solution |
|---|---|---|
|
Connection error |
Unable to connect to SuiteCloud Developer Assistant. |
Verify the following:
|
|
Custom providers support |
The tool does not support custom providers. |
Some CLI tools may not support the following:
Refer to the tool documentation to verify compatibility. |