Your first project
Odyn vendors Odin dependencies as plain git clones under deps/ and pins each one to an exact commit in Odyn.lock. Once it is installed, here is the loop for a first project.
Scaffold a project
Section titled “Scaffold a project”odyn init myappcd myappThis creates an Odin project with a main.odin, an ols.json that maps the deps collection, an empty Odyn.lock, and a git repository. Pass . (or leave empty default) to scaffold in the current directory instead.
Add a dependency
Section titled “Add a dependency”odyn get clones a repository into deps/ and records its commit in Odyn.lock. Point it at any git host:
# short form resolves against the default forge (GitHub)odyn get odin-lang/examples
# choose a forge with -p/--platformodyn get user/repo -p codeberg
# or pass a full URLodyn get https://codeberg.org/user/repoUseful flags:
-n, --namesets the folder underdeps/(defaults to the repo name).-t, --tagresolves a tag. Uselatestfor the newest semver tag, or a specific tag likev1.2.0.
Use it in code
Section titled “Use it in code”The scaffolded ols.json maps a deps collection, so you import a dependency by its folder name:
import ex "deps:examples"Build your project with the same collection flag:
odin build . -collection:deps=depsNext: learn the daily workflow for keeping dependencies in sync.