How to manually set an Environment Variable for Fusion on macOS

Autodesk Support

Feb 25, 2025


Products and versions covered


Issue:

How to set an Environment Variable for Fusion on macOS using the standard manual operating system commands.

Solution:

For more information, see: How to set Environment Variables.

For macOS Mojave (10.14) or earlier (bash is the default shell).

  • Set a permanent environment variable in bash:
    1. Edit or create`~/.bash_profile` in a text editor (`~/.bashrc` for only interactive terminal sessions).
    2. Add the following line:
      • export VARIABLE_NAME=<value>
      • Note: Replace VARIABLE_NAME with the name of your variable and <value> with its value (if <value> has spaces in it, wrap it in ").
    3. Save the file and restart your terminal or execute the command:
      • source ~/.bash_profile
  • Set a temporary environment variable in bash:
    1. Open a terminal.
    2. Enter the following line:
      • export VARIABLE_NAME=<value>
      • Note: Replace VARIABLE_NAME with the name of your variable and <value> with its value (if <value> has spaces in it, wrap it in ").
    3. Close the terminal to revert the change.

For macOS Catalina (10.15) or newer (zsh is the default shell).

  • Set a permanent environment variable in zsh:
    1. Edit or create'~/.zshenv' in a text editor ('~/.zshrc' for only interactive terminal sessions).
    2. Add the following line
      • export VARIABLE_NAME=<value>
      • Note: Replace VARIABLE_NAME with the name of your variable and <value> with its value (if <value> has spaces in it, wrap it in ").
    3. Save the file and restart your terminal or execute the command:
      • source ~/.zshenv
  • Set a temporary environment variable in zsh:
    1. Open a terminal.
    2. Enter the following line:
      • export VARIABLE_NAME=<value>
        
      • Note: Replace VARIABLE_NAME with the name of your variable and <value> with its value (if <value> has spaces in it, wrap it in ").
    3. Close the terminal to revert the change.

Products:

Fusion;


Was this information helpful?


Need help? Ask the Autodesk Assistant!

The Assistant can help you find answers or contact an agent.


What level of support do you have?

Different subscription plans provide distinct categories of support. Find out the level of support for your plan.

View levels of support