tree¶
vb tree [OPTIONS] [PATHS ...]
Description¶
List all files in the current check-out much like the tree
command does. If PATHS is included, only the named files
(or their children if directories) are shown.
Options¶
- -r VERSION¶
The specific check-in to list
- -R, --repository REPO¶
Extract info from repository REPO
Examples¶
Init and open a repository
$ vb init tree_repo.vbyte
project-id: 4c89a4b55e89fbb7d117722cd91eeb1015862f26
server-id: 472fc0be53aaf47991b5609f265e46a2fb871455
admin-user: ubuntu (initial remote-access password is "ZhmBxeYi2D")
$ vb open -f tree_repo.vbyte
project-name: <unnamed>
repository: /tmp/sphinx_tests/0496f9a3/tree_repo/tree_repo.vbyte
local-root: /tmp/sphinx_tests/0496f9a3/tree_repo/
config-db: /tmp/sphinx_tests/0496f9a3/.visionbyte
project-code: 4c89a4b55e89fbb7d117722cd91eeb1015862f26
checkout: afb581441c78aad3155a251918af1ced4e4f4960 2026-03-31 13:00:46 UTC
tags: trunk
comment: initial empty check-in (user: ubuntu)
check-ins: 1
Create a small directory tree and commit it
$ vb sys mkdir src
$ vb sys mkdir src\lib
$ vb sys echo "# h" > README.md
$ vb sys echo "int main(){}" > src\main.c
$ vb sys echo "void helper(){}" > src\lib\helper.c
$ vb add .
ADDED README.md
ADDED srclibhelper.c
ADDED srcmain.c
$ vb ci -m "seed"
Committed version: f01d1c0de3a6e3a21cd2fcea03d6f16a379b14b733c8a4c3170fb3e2639a9c1a
Show the tracked tree for the current checkout
$ vb tree
/tmp/sphinx_tests/0496f9a3/tree_repo/
├── README.md
├── srclibhelper.c
└── srcmain.c
See Also¶
See also