Setting Up Environment Variables for SuiteCloud SDK Tools
You can set up the following environment variables for SuiteCloud SDK:
-
SUITECLOUD_FALLBACK_PASSKEY
-
SUITECLOUD_CI
-
SUITECLOUD_CI_PASSKEY
-
SUITECLOUD_PROXY
(use this only if you're working behind a VPN connection and you can't access netsuite.com)
Below are some ways you can set environment variables on Windows, macOS, and Linux.
To set the environment variables on Windows:
-
Click the Windows icon and type environment variables.
-
In the results list, click Edit the system environment variables.
-
In the System Properties dialog, click Environment Variables.
-
Under System variables, click New.
-
In the New System Variable dialog, enter the variable name and value, then click OK.
-
Restart your terminal or application.
To set the environment variables on macOS:
-
Open the terminal.
-
Mac uses different shell profiles based on shell type. If you already know which shell you're using, skip to Step 3.
To find out what shell you are using, run the following command:
echo $SHELL
-
If the output contains
/bin/zsh
, you're using zsh. -
If the output contains
/bin/bash
, you're using bash.
-
-
Run the appropriate command based on the shell profile you are using:
-
For zsh:
nano ~/.zprofile
-
For bash:
nano ~/.bash_profile
-
-
Add the environment variable to the file in this format:
export VARIABLE_NAME=value
For example:
export SUITECLOUD_CI_PASSKEY=0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ
-
Save your changes and close the file. In nano:
-
Press Ctrl + X to exit.
-
Press Y to confirm changes.
-
Press Enter to save.
-
-
To apply the changes immediately, run the following command:
-
For zsh:
source ~/.zprofile
-
For bash:
source ~/.bash_profile
-
-
(Optional) To ensure that the variable is set correctly, check its value with this command:
echo $VARIABLE_NAME
To set the environment variables on Linux:
-
Open the terminal.
-
Run the following command:
gedit ~/.bashrc
-
Add the environment variable to the file in this format:
export VARIABLE_NAME=value
For example:
export SUITECLOUD_CI_PASSKEY=0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ
-
Save your changes and close the file.
-
To apply the changes immediately, run the following command:
source ~/.bashrc
-
(Optional) To ensure that the variable is set correctly, check its value with this command:
echo $VARIABLE_NAME