Wolfram Computation Meets Knowledge

How do I specify which kernel WolframScript should use?

With WolframScript, you can run Wolfram Language code from your operating system’s command line, either through a Wolfram kernel installed as part of a Wolfram product or in the Wolfram Cloud.

If you have multiple Wolfram products installed on your machine and want WolframScript to use a specific kernel, launch WolframScript from the command line with the command:

wolframscript -config WOLFRAMSCRIPT_KERNELPATH="Full path to kernel"

For example, to use the Wolfram kernel included with a default installation of the Wolfram Engine on Windows, the command is:

wolframscript -config WOLFRAMSCRIPT_KERNELPATH="C:\Program Files\Wolfram Research\Wolfram Engine\12.3\WolframKernel.exe"

For a default installation of the Wolfram Engine on macOS, the command is:

wolframscript -config WOLFRAMSCRIPT_KERNELPATH="/Applications/Wolfram Engine.app/Contents/MacOS/WolframKernel"

For a default installation of the Wolfram Engine on Linux, the command is:

wolframscript -config WOLFRAMSCRIPT_KERNELPATH="/usr/local/Wolfram/WolframEngine/12.3/Executables/WolframKernel"

This setting for WolframScript will be preserved until another program containing a Wolfram kernel is installed or the setting is manually changed.

Is this article helpful?
Yes
No

Any comments?

Thank you for your feedback.

Submit

Contact Support

Whether you have a question about billing, activation or something more technical, we are ready to help you.

1-800-WOLFRAM (+1-217-398-0700 for international callers)

Customer Support

Monday–Friday
8am–5pm US Central Time

  • Product registration or activation
  • Pre-sales information and ordering
  • Help with installation and first launch

Advanced Technical Support (for eligible customers)

Monday–Thursday
8am–7pm US Central Time

Friday
8:30–10am & 11am–5pm US Central Time

  • Priority technical support
  • Product assistance from Wolfram experts
  • Help with Wolfram Language programming
  • Advanced installation support