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

# Version Aliases For Artifact And Model Versions

> Add unique version aliases to artifact and model versions using the Python SDK or TrueFoundry UI.

You can add a version alias for each artifact or model version, this alias will act as a unique identifier to access the model or artifact.

In this guide, we will see how to add a version alias for the artifact or model, but before that, there are a few things to consider.

* The version alias must be unique across artifacts, so you cannot have the same version alias for two different artifacts or model versions within the same parent artifact or model.
* Alias will not replace the version but they will be accessible with the version, you can still access the artifact version by version number.

## Adding version alias via Python SDK

* You can add a version alias via Python SDK by following the way
* The version alias should start with 'v' followed by alphanumeric and it can include '.' and '-' in between (e.g. v1.0.0, v1-prod, v3-dev, etc)

<CodeGroup>
  ```python Python lines theme={"dark"}
  from truefoundry.ml import get_client

  client = get_client()

  artifact_version = client.log_artifact(ml_repo="", name="", artifact_paths=[])
  artifact_version.version_alias = "v0.0.1" #It should start with 'v'

  artifact_version.update()
  ```
</CodeGroup>

## Adding version alias via UI

Follow this tutorial to add a version alias for an artifact version via UI

<iframe typeofembed="iframe" href="https://app.supademo.com/embed/cm5p9vb1i09ihhrlogy5no7fc?embed_v=2" height="400px" width="100%" src="https://app.supademo.com/embed/cm5p9vb1i09ihhrlogy5no7fc?embed_v=2" style={{ border: "none", display: "flex", margin: "auto" }} />

***
