Menu
Introduction
Install
To install Tangram, run the install script below, or download the latest release and add it to $PATH.
curl -fsSL https://tangram.dev/install.sh | sh
Hello, World!
Create a file named tangram.ts at the root of your project with the following content.
export default tg.target(() => tg.file("Hello, World!"));
This creates a target which outputs a file with the contents Hello, World!. Run tg build to build the target.
$ tg buildfil_01tvcqmbbf8dkkejz6y69ywvgfsh9gyn1xjweyb9zgv0sf4752446g
Run tg checkout to check out the output.
# Check out the file to `hello.txt`.$ tg checkout fil_01tvcqmbbf8dkkejz6y69ywvgfsh9gyn1xjweyb9zgv0sf4752446g hello.txt# Print the file's contents.$ cat hello.txtHello, World!