Skip to content
go-libfossil Artifact [4ac2d8c498]
Login

Artifact [4ac2d8c498]

Artifact 4ac2d8c4983f28bfc645ef8691e2fd6d95648eddea590a08d1764a61ebcff22d:


---
title: 'repo schema'
weight: 380
generated: true
description: 'Synced table schema operations'
---

<!-- 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 schema <command>

Synced table schema operations

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

Commands:
  repo schema add --columns=STRING <name> [flags]
    Register a new synced table

  repo schema list
    List registered synced tables

  repo schema show <name>
    Show table schema details

  repo schema remove <name>
    Remove a synced table registration
```

## repo schema add

```text
Usage: libfossil repo schema add --columns=STRING <name> [flags]

Register a new synced table

Arguments:
  <name>    Table name (without x_ prefix)

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

      --columns=STRING           Column defs: name:type[:pk],... (e.g.
                                 peer_id:text:pk,addr:text)
      --conflict="mtime-wins"    Conflict strategy
```

## repo schema list

```text
Usage: libfossil repo schema list

List registered synced tables

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

## repo schema show

```text
Usage: libfossil repo schema show <name>

Show table schema details

Arguments:
  <name>    Table name (without x_ prefix)

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

## repo schema remove

```text
Usage: libfossil repo schema remove <name>

Remove a synced table registration

Arguments:
  <name>    Table name (without x_ prefix)

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