account:setup
Sets up an account to use with SuiteCloud CLI for Node.js.
This command only supports interactive mode.
Depending on whether your account uses two-factor authentication (2FA), select one of the following options when prompted:
-
Browser-based authentication. Use this option to authenticate your account through a browser that is prompted automatically.
Important:Browser-based authentication is not compatible with Windows Subsystem for Linux.
-
Save a TBA token issued in NetSuite. Use this option to save a TBA token that was previously issued in your account.
Tip:To learn how to issue a TBA token in NetSuite, see User Access Token – Create a TBA Token.
Syntax
account:setup
Options
Option |
Required / Optional |
Description |
---|---|---|
-i or --interactive |
Optional |
Runs the |
-h or --help |
Optional |
Displays help for the command. |
Example
The following command sets up the account to use with your current SuiteCloud project using the interactive mode:
suitecloud account:setup
Before the command is executed, the following questions are prompted:
Select or create an authentication ID: ***The authentication ID that you select or create will be set up as default. > Create a new authentication ID.
___________________________________________ Select a configured authentication ID:
( ) myRoleID - myAccountID [ROLE: myDomainURL]
Select an authentication method: If your role requires 2FA, you must save a TBA token issued in NetSuite. To learn how to issue a token in NetSuite, see https://system.netsuite.com/app/help/helpcenter.nl?fid=bridgehead_4254083671.html. Browser-based authentication. > Save a TBA token issued in NetSuite.
Enter an authentication ID: myDevRole
Enter the Token ID: *********************************
Enter the Token Secret: ********************************
Output Example
When executed, the command produces output that is similar to the following:
Token has been saved.
The account has been successfully set up.