---
title: 'repo co'
weight: 40
generated: true
description: 'Checkout a version'
---

<!-- Generated by scripts/gen-cli-docs.sh from the libfossil --help output. Do not edit; change the help text in cli/ and run make docs-gen. -->

```text
Usage: libfossil repo co [<version>] [flags]

Checkout a version

Arguments:
  [<version>]    Version to checkout (default: tip)

Flags:
  -h, --help           Show context-sensitive help.
  -R, --repo=STRING    Path to repository file
  -v, --verbose        Verbose output

  -d, --dir="."        Output directory (default: current dir)
      --force          Overwrite existing files
```
