Quickstart
-
Create a project
Section titled “Create a project”Terminal window archmage init --language cs ./my-projectcd my-projectThe
--languageflag is required —csfor C#,gofor Go.See
archmage initfor all available options. -
Review the project structure
Section titled “Review the project structure”The
initcommand creates the following project structure:.├── configs/ # configuration files — spreadsheets and tree-structured data├── enums/ # enum definitions├── scripts/ # ready-to-use commands├── output/ # exported data and generated code (initially absent)└── starter/ # runnable example demonstrating SDK integration and usageRead
ARCHMAGE.mdat the project root to see what each sample config file does. -
Set your namespace
Section titled “Set your namespace”Open
enums/demo.enum.yamland change__namespace__to your project name before generating code.See Enum Definition for the full syntax.
-
Run the scripts
Section titled “Run the scripts”Terminal window scripts/all.shThe
all.shscript runs the following three in order:Terminal window scripts/export.sh # export datascripts/enum.sh # generate enum codescripts/struct.sh # generate struct definitions -
Inspect the output
Section titled “Inspect the output”All output goes into
output/. For a project created with--language cs:Directory Created by Contents output/configs/exportThe exported data, atlas.json, and the l10n aggregateoutput/Enums/enumThe generated enum code output/Conf/structThe generated struct definitions With
--language go, the last two directories areoutput/enums/andoutput/conf/. -
Run the starter
Section titled “Run the starter”After
scripts/all.shfinishes, run the starter:Terminal window starter/run.shThe starter project demonstrates how to use the SDK to load the exported data.
Where to go next
Section titled “Where to go next”- Write your own config files — explore Spreadsheets, Tree-Structured Data, and the unified Data Types and Options.
- Understand the two major pipelines — dive into Data Export and Code Generation.
- Optimize for AI — see Readability to learn how to produce highly parsable data for AI agents.
- Customize the scripts — each generated script runs a single command:
archmage export,archmage enum, orarchmage struct. - Load the data in your game — see the C# SDK and the Go SDK.
- Collaborate via Google Sheets —
archmage drivepulls your Google Drive spreadsheets into your local workspace.