Getting Started with Zeus
Zeus manages complex deploy processes for onchain software.
Prerequisites
Before installing Zeus, ensure you have:
- Node 22 or later (
node --version
to check) forge
installed
Setting Up a New Project with Zeus
-
Create new GitHub repositories
You'll need two repositories:
- A repository for your smart contracts project
- A separate repository to store deployment metadata
Create both repositories and install the Zeus Deployer app on the metadata repository.
-
Install Zeus globally
npm install -g @layr-labs/zeus
-
Authenticate with Zeus
zeus login
-
Initialize Zeus in your contract repository
zeus init
When prompted for your metadata repository, provide the dedicated metadata repository you created in step 1. This separate repository will store all deployment records, contract addresses, and environment configurations.
-
Create your first environment
zeus env new
This creates your first environment to deploy your contracts into.
Next Steps
Now that Zeus is set up in your repository, you can:
- Write your first migration
- Learn about environments
- Run Zeus tests with
zeus test