Skip to content

Installation

Before installing Spry, make sure you have the following installed on your system:

  • Deno: Spry runs on the Deno runtime (v1.30 or later)
  • Database: SQLite or PostgreSQL
  • SQLPage (optional): For building web applications

Spry is built on Deno, a modern JavaScript/TypeScript runtime. Install it using the following command:

Terminal window
curl -fsSL https://deno.land/install.sh | sh

Initialize a new Spry project using the installation script. Choose your preferred database:

Create a new Spry project with SQLite (default):

Terminal window
curl -fsSL https://sprymd.org/init.sh | sh -s

This creates a new Spry project in the current directory with SQLite configuration.

After initialization, your project will have the following structure:

myproject/
├── Spryfile.md # Main executable markdown file
├── spry.ts # Spry CLI
├── sqlpage/
│ ├── sqlpage.json # SQLPage configuration
│ └── migrations/ # Database migrations
└── dev-src.auto/ # Auto-generated SQLPage source files

Test your Spry installation:

Terminal window
./spry.ts --version

You should see the Spry version number printed to the console.