> ## Documentation Index
> Fetch the complete documentation index at: https://ugcore.urging.ch/llms.txt
> Use this file to discover all available pages before exploring further.

# UgLib.Version

> Require a minimum ug-lib version.

<Badge color="purple">Shared</Badge> Runs in your resource.

```lua theme={"dark"}
UgLib.Version.Get() -> string
UgLib.Version.IsAtLeast(minimum) -> boolean
UgLib.Version.Require(minimum)
```

* `Get` returns ug-lib's manifest version, such as `'1.0.0'`.
* `IsAtLeast` compares major, minor and patch as numbers. Pre-release suffixes are ignored.
* `Require` raises when ug-lib is older, and logs one warning when ug-lib has a newer major version.

The manifest key does the same before `UgLib` exists:

```lua fxmanifest.lua theme={"dark"}
ug_lib_version '1.0.0'
```


## Related topics

- [UgLib.Enums](/ug-lib/enums.md)
- [UgLib.Locale](/ug-lib/locale.md)
- [UgLib.Menu](/ug-lib/menu.md)
- [UgLib.Context](/ug-lib/context.md)
- [UgLib.Notify](/ug-lib/notify.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.