Type something to search...

Step 1: Getting Started Locally

Install Astrolock and create your first site - no external setup required

Tip

You can complete this entire guide on your own - no server setup, no deployment accounts needed. Get a fully functional local site running in 15 minutes.

What You’ll Accomplish

By the end of this guide, you’ll have:

  • ✅ Astrolock installed on your machine
  • ✅ A working site running at http://localhost:4321
  • ✅ Your first blog post or collection created
  • ✅ Understanding of how to add and preview content

Time Required: 15-20 minutes Prerequisites: A Mac or Linux computer (Windows via WSL)

Info

Two ways to use Astrolock:

  • VS Code Extension (recommended for non-technical users) - Right-click menus, no terminal
  • CLI (for terminal users) - Full command-line control

This guide covers both. Choose what works best for you!


Prerequisites

You need these tools installed first:

Run these commands to check:

node --version   # Need v18 or higher
yarn --version   # Need v1.22 or higher
yq --version     # Need v4 or higher

If any command fails, continue with the installation steps below.

1. Install Node.js

brew install node@20

2. Install Yarn

npm install -g yarn

3. Install yq

brew install yq

Note

yq is a YAML processor that Astrolock uses for configuration management.


Install Astrolock

Download and install the Astrolock CLI:

curl -sSL https://astrolock.eyelock.net/install.sh | bash

Verify the installation:

astrolock --version

You should see a version number like astrolock 0.1.0.


Create Your First Site

Initialize a New Site

Create a directory for your site and initialize it:

mkdir my-site
cd my-site
astrolock init

The wizard will ask you a few questions:

Site title [My Site]: My Amazing Blog
Site description [A modern static site]: A blog about my adventures

Configuration ready
Creating Site Files...
✓ Directories created
✓ Site images copied
✓ Configuration files created
✓ Content created

Setup Complete!

Just accept the defaults for now - you can change everything later.

Start the Development Server

Start the live development server:

astrolock write

Info