Wolfram Computation Meets Knowledge

How do I specify which kernel WolframScript should use?

Read this article in: Deutsch, Español, Français, 日本語, 한국어, Português, Русский, 中文


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\14.0\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/14.0/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–5pm 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