cat

vb cat [OPTIONS] FILENAME ...

Description

Print the content of one or more files as they exist in the repository. The version currently checked out is shown by default. Use -r to specify another version.

Options

-o, --out OUTFILE

For exactly one FILENAME, write to OUTFILE

-R, --repository REPO

Extract artifacts from repository REPO

-r VERSION

The specific check-in containing the file

Examples

  • Init and open a repository

$ vb init cat_repo.vbyte
project-id: 2326c11ae5a87d9aade18ed974c77c3f92414462
server-id:  c742b135d44d67b0c90dff51a847c7fdd99b6b09
admin-user: ubuntu (initial remote-access password is "9xZ7Yq5Ha8")
$ vb open -f cat_repo.vbyte
project-name: <unnamed>
repository:   /tmp/sphinx_tests/1dc8774a/cat_repo/cat_repo.vbyte
local-root:   /tmp/sphinx_tests/1dc8774a/cat_repo/
config-db:    /tmp/sphinx_tests/1dc8774a/.visionbyte
project-code: 2326c11ae5a87d9aade18ed974c77c3f92414462
checkout:     2680cbbf4c7163247dfe37aa09bb7465341c0186 2026-03-31 13:00:07 UTC
tags:         trunk
comment:      initial empty check-in (user: ubuntu)
check-ins:    1
  • Create and write a text file

$ vb sys echo "alpha" > readme.txt
  • Add and commit a text file

$ vb add readme.txt
ADDED  readme.txt
$ vb commit -m "content"
Committed version: a61b83b4e26b992290665d0a78694ef78de582ae7122e68fb75415e64176ab82
  • Show repository version of a file

$ vb cat readme.txt
alpha

See Also

See also

finfo