---
title: 'repo snapshot'
weight: 70
generated: true
description: 'Commit a file''s bytes onto trunk, no checkout needed'
---

<!-- 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 snapshot --message=STRING --path=STRING [flags]

Commit a file's bytes onto trunk, no checkout needed

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

  -m, --message=STRING    Checkin comment
      --path=STRING       File name in the repository (relative,
                          slash-separated); the bytes come from this path on
                          disk unless --stdin
      --stdin             Read the bytes from stdin instead of from --path on
                          disk
      --user=STRING       Checkin user (default: OS username)
      --json              Print {"uuid":...,"changed":...} instead of the bare
                          uuid
```
