Setting Up Environment Variables for SuiteCloud SDK Tools

You can set up the following environment variables for SuiteCloud SDK:

The following procedures describe some of the possible ways to set environment variables for the following operating systems: Windows, macOS, and Linux.

To set the environment variables on Windows:

  1. Click the Windows icon and type environment variables.

  2. In the results list, click Edit the system environment variables.

  3. In the System Properties dialog, click Environment Variables.

  4. Under System variables, click New.

  5. In the New System Variable dialog, enter the variable name and value, then click OK.

  6. Restart your terminal or application.

To set the environment variables on macOS:

  1. Open the terminal.

  2. Mac uses different shell profiles based on shell type. If you already know what shell you are 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 are using zsh.

    • If the output contains /bin/bash, you are using bash.

  3. Run the appropriate command based on the shell profile you are using:

    • For zsh:

                          nano ~/.zprofile 
      
                        
    • For bash:

                          nano ~/.bash_profile 
      
                        
  4. Add the environment variable to the file in this format:

                    export VARIABLE_NAME=value 
    
                  

    For example:

                    export SUITECLOUD_CI_PASSKEY=0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 
    
                  
  5. Save your changes and close the file. In nano:

    1. Press Ctrl +X to exit.

    2. Press Y to confirm changes.

    3. Press Enter to save.

  6. To apply the changes immediately, run the following command:

    • For zsh:

                          source ~/.zprofile 
      
                        
    • For bash:

                          source ~/.bash_profile 
      
                        
  7. (Optional) To ensure that the variable is set correctly, check its value using the following command:

                    echo $VARIABLE_NAME 
    
                  

To set the environment variables on Linux:

  1. Open the terminal.

  2. Run the following command:

                    gedit ~/.bashrc 
    
                  
  3. Add the environment variable to the file in this format:

                    export VARIABLE_NAME=value 
    
                  

    For example:

                    export SUITECLOUD_CI_PASSKEY=0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 
    
                  
  4. Save your changes and close the file.

  5. To apply the changes immediately, run the following command:

                    source ~/.bashrc 
    
                  
  6. (Optional) To ensure that the variable is set correctly, check its value using the following command:

                    echo $VARIABLE_NAME 
    
                  

Related Topics

General Notices