Download CuffScript

Run CuffScript programs on your own computer, from a terminal or a desktop IDE. You can also try it in the browser with nothing to install.

CuffScript for Windows

Version 6.6.0 · Windows 10 or 11, 64-bit · No administrator rights needed

Download the installer

cuffscript-6.6.0-windows-x64-setup.exe

What the installer sets up

PartWhat you get
cuffcThe command-line tool that runs a .cuff file: cuffc program.cuff
cuffshAn interactive shell, for trying a line at a time
CuffScript IDEA desktop editor that runs your programs with cuffc. Double-clicking a .cuff file opens it there
ExamplesThe numbered example programs, in a folder of their own

By default it installs for your user account only, into %LOCALAPPDATA%\Programs\CuffScript, without administrator rights. The first page offers an install for every user of the computer, into Program Files, instead.

Two options are on by default, and the page that lists them lets you switch either off:

  • Add to PATH. cuffc and cuffsh then work from any folder in a terminal opened after the install.
  • Open .cuff files in the IDE. If you already chose another program for .cuff files in Windows' "Open with", your choice wins.

The Start menu gets a "CuffScript" folder with the IDE, the shell, the examples and the uninstaller.

After installing

Open a new terminal, so that it sees the new PATH, and run a program:

cuffc --help
cuffc hello.cuff

Start with the examples from the Start menu, or with Your first program in the guide.

Windows says "Windows protected your PC"? Windows shows this for an installer it has not seen many times before. Choose More info, then Run anyway.

Uninstalling

Remove "CuffScript" from Settings › Apps › Installed apps. It takes out its own PATH entry and file association and leaves the rest of PATH as it was.

macOS, Linux and building from source

There is no installer for other systems yet. The engine is plain C++17 with no dependencies, so a compiler and make are all it takes:

git clone https://github.com/cuffscript/cuffscript.git
cd cuffscript
make
./cuffc your_script.cuff

Running programs on your own computer in the guide lists cuffc's options.

Other ways to get CuffScript

  • The browser IDE runs the same engine, compiled to WebAssembly, with nothing to install.
  • The cuffscript-wasm npm package runs CuffScript from JavaScript or TypeScript: npm install cuffscript-wasm. See Embedding.
  • The v6.6.0 release on GitHub also has cuffc, cuffsh and the IDE as single programs, without the installer. Older versions are on the releases page, and what changed in each is in the CHANGELOG.