Skip to content

About

Run AngelScript files from the terminal, like Python: angelscript hello.as or asc hello.as. Files, sockets, strings and dates.

Topics

Resources

Contributing

Stars

2 stars

Watchers

0 watching

Forks

Repository files navigation

AngelScript CLI

English | Español

Run, check and debug standalone AngelScript scripts from the terminal, the way you run Python or Node. One small program with files, strings, dates and TCP sockets built in.

hello.as open in VS Code and asc running it in the terminal

Install

System Command
Windows Download angelscript-cli-<version>-windows-x64-setup.exe from Releases and run it.
macOS Download angelscript-cli-<version>-macos-arm64.pkg (Apple silicon) or -macos-x64.pkg (Intel) from Releases and open it.
Linux (Debian, Ubuntu) Download angelscript-cli-<version>-linux-x64.deb from Releases, then run sudo apt install ./angelscript-cli-<version>-linux-x64.deb in that folder.

Without administrator rights, run one of these. The script replaces an earlier install in the same folder and warns when another copy elsewhere in PATH would hide it. Set ANGELSCRIPT_CLI_REMOVE_OTHERS=1 first to remove those copies too. The Windows setup lists earlier installs on its own page and removes the ones you leave checked.

PowerShell on Windows:

irm https://raw.githubusercontent.com/angelscript-tools/angelscript-cli/main/scripts/install.ps1 | iex

Shell on Linux and macOS:

curl -fsSL https://raw.githubusercontent.com/angelscript-tools/angelscript-cli/main/scripts/install.sh | sh

Open a new terminal and run asc --version. The setup steps, the other architectures and the installer options are in docs/INSTALL.md.

Examples

Every script lives in examples/. asc --check script.as compiles without running.

files.as open in VS Code and asc running it

Files: write, read, list and delete.

sum.as open in VS Code with the exit code printed in the terminal

Arguments and exit codes: main() returns the process code.

tcp-echo.as open in VS Code and asc running it

TCP sockets: a client and a server in one script.

strings.as open in VS Code and asc running it

Strings: split, join, search and format.

A plain Command Prompt running the same scripts

No editor needed: any terminal runs them.

Use with VS Code

  1. Install the AngelScript extension and open a .as file.
  2. Press F5. With no launch.json, the extension runs the open file with asc.
  3. To debug, run asc --dap-port 9002 script.as and attach.

To set the run up yourself, add this to configurations in .vscode/launch.json:

{
  "type": "angelscript",
  "request": "launch",
  "name": "Run script",
  "program": "${file}"
}

Typing asc files.as in the VS Code terminal

VS Code attached to a script that asc runs in Command Prompt, stepping through addBonus

The editor stub, the debug configuration and the command list are in docs/REFERENCE.md.

Building from source

git clone https://github.com/angelscript-tools/angelscript-cli.git
cd angelscript-cli
git submodule update --init
cmake --preset windows-x64
cmake --build --preset windows-x64
ctest --preset windows-x64

Presets: windows-x64, windows-x86, linux-x64, linux-x86, linux-arm64, macos. The optional JIT, ahead-of-time libraries and other AngelScript releases are in docs/BUILDING.md.

Documentation

  • Install — the Windows setup step by step, packages and scripts.
  • Reference — commands, exit codes, VS Code, debugging and editor support.
  • Addons — install native libraries with asc addon install, load them with --addon or as.json, and write your own.
  • Building — build from source, JIT, AOT and other AngelScript releases.
  • Engine versions — what each release supports.
  • Recording the captures — how the images are made.
  • CHANGELOG.md — release history.

Roadmap

  • Package management for AngelScript releases.
  • JIT builds on every target, including AOT on 32-bit and macOS.

The plan and how it compares with the other AngelScript JITs are in docs/ROADMAP.md.

Support

Open an issue for the command line program, the installers and the engine versions. Include the output of angelscript --version, your operating system and a short script that reproduces the problem. Debugger problems go to angelscript-dap, and editor problems to angelscript-lsp. To help, read CONTRIBUTING.md.

Related

Project Use
angelscript-lsp Editor support for VS Code
angelscript-mcp MCP server so AI agents check and navigate scripts
angelscript-agent-kit Skill and one-step installs for Claude Code, Codex, Gemini CLI and Antigravity
angelscript-dap The debugger core behind --dap-port
angelscript-debugger-example A host that shows how to use the debugger
angelscript-jit Optional JIT compiler
angelscript-engine Support for older AngelScript releases
tree-sitter-angelscript Tree-sitter grammar the language server uses
angelscript-api-dumper Writes .as.predefined stubs from a running engine

Similar projects

Credits

AngelScript CLI runs on the work of these projects. Their licenses are reproduced in THIRD_PARTY_NOTICES.md and ship with every package.

Project License Use
AngelScript by Andreas Jönsson zlib The language and its runtime
angelscript-dap MIT Debug Adapter Protocol core
cppdap Apache-2.0 Debug Adapter Protocol library
nlohmann/json MIT JSON, through cppdap

License

This repository is licensed under the MIT License.

About

Run AngelScript files from the terminal, like Python: angelscript hello.as or asc hello.as. Files, sockets, strings and dates.

Topics

Resources

Contributing

Stars

2 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages