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
cuffscript-6.6.0-windows-x64-setup.exe
What the installer sets up
| Part | What you get |
|---|---|
cuffc | The command-line tool that runs a .cuff file: cuffc program.cuff |
cuffsh | An interactive shell, for trying a line at a time |
| CuffScript IDE | A desktop editor that runs your programs with cuffc. Double-clicking a .cuff file opens it there |
| Examples | The 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.cuffcandcuffshthen work from any folder in a terminal opened after the install. - Open
.cufffiles in the IDE. If you already chose another program for.cufffiles 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.
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-wasmnpm package runs CuffScript from JavaScript or TypeScript:npm install cuffscript-wasm. See Embedding. - The v6.6.0 release on GitHub also has
cuffc,cuffshand the IDE as single programs, without the installer. Older versions are on the releases page, and what changed in each is in the CHANGELOG.