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: 705780628211a78c6f5676eee6e8dca2c4763e09
server-id: c051593813c5d28cba94cd44aa986685b3468055
admin-user: ubuntu (initial remote-access password is "WSaMLRbPer")
$ 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: 705780628211a78c6f5676eee6e8dca2c4763e09
checkout: b209bf2a5c5498554cec659a27570f12da73ba42 2026-03-24 12:51:05 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: d50addf454c789ba44a69001da1862ee2f174f171f943ce3c7f8a73926058927
Show repository version of a file
$ vb cat readme.txt
alpha
See Also¶
See also