3. Create and publish a package
Create a library:
longbow new archer-words --libcd archer-wordsExport a small function from its declared module, add a paired _test.fl
module, and run longbow test.
The package ecosystem contract explains
manifest identity, aliases, immutable versions, compatibility ranges, and
credentials in full.
Before any upload, qualify the exact archive:
longbow checklongbow testlongbow buildlongbow publish --dry-runThe dry run validates the manifest and reports normalized files and a SHA-256 checksum without contacting the registry. A real published version is immutable. Increment the version for a correction; yank only to prevent new unlocked resolutions from selecting a bad version.
Applications import a dependency through their local alias, such as
lib::words::greeting, rather than through its registry owner. Commit
longbow.lock for applications so CI resolves the same bytes.
Track complete
Section titled “Track complete”You can now create, run, diagnose, and package a small application. Continue to Basic: modules, values, and functions. Use Longbow as the command reference.