authenticate
Browser-based authentication is not compatible with Windows Subsystem for Linux.
Grants authorization for SuiteCloud SDK to access NetSuite with an account-role combination. It requires browser-based login to NetSuite.
For this command to work, at least one of the following ports needs to be accessible locally from your machine: 52300 – 52315.
Syntax
authenticate [-authid AuthId]
[-url NetSuiteDomainURL]
Options
Option |
Required / Optional |
Description |
-authid |
Required |
References the custom alias you give to a specific account-role combination. Referred to as authentication ID and auth ID in the documentation. |
-url |
Optional Not required when authenticating against |
References the NetSuite domain of the account you want to use. It only needs to be specified if you want to use a customized NetSuite domain. |
-h or -help |
Optional |
Prints the help for this command. |
Example
The following command authenticates an account by prompting the browser:
sdfcli authenticate -authid AuthId
Output example
After the browser closes and the account-role combination is authenticated, the command produces output that is similar to the following:
The authentication was successful with the following account and role: Account ID [Role]. This project will use the authentication ID "AuthId" as default.
Related Topics
- SuiteCloud CLI for Java Commands
- adddependencies
- authenticateci
- createfile
- createproject
- deploy
- importbundle
- importconfiguration
- importfiles
- importobjects
- listbundles
- listconfiguration
- listfiles
- listmissingdependencies
- listobjects
- manageauth
- package
- preview
- project
- update
- updatecustomrecordwithinstances
- uploadfiles
- uploadfolders
- validate