Warning

The product is in closed beta and not open to the public.

ls

vb ls [OPTIONS] [PATHS ...]

Description

List all files in the current check-out. If PATHS is included, only the named files (or their children if directories) are shown.

The ls command is essentially two related commands in one, depending on whether or not the -r option is given. -r selects a specific check-in version to list, in which case -R can be used to select the repository. The fine behavior of the --age, -v, and -t options is altered by the -r option as well, as explained below.

The --age option displays file commit times. Like -r, --age has the side effect of making -t sort by commit time, not modification time.

The -v option provides extra information about each file. Without -r, -v displays the change status, in the manner of the changes command. With -r, -v shows the commit time and size of the checked-in files.

The -t option changes the sort order. Without -t, files are sorted by path and name (case insensitive sort if -r). If neither --age nor -r are used, -t sorts by modification time, otherwise by commit time.

Options

--age

Show when each file was committed

--hash

With -v, verify file status using hashing rather than relying on file sizes and mtimes

-r VERSION

The specific check-in to list

-R, --repository REPO

Extract info from repository REPO

-t

Sort output in time order

--tree

Tree format

-v, --verbose

Provide extra information about each file

Examples

  • Init and open a repository

$ vb init ls_repo.vbyte
project-id: 2af32b408b9b2d7e1ea8320e59eab03657e32469
server-id:  8ddc930b0e9f033269ad09d3edfe46a5accd1fc4
admin-user: frankli (initial remote-access password is "w53v89nMVi")
$ vb open -f ls_repo.vbyte
project-name: <unnamed>
repository:   <EXAMPLE>/ls_repo/ls_repo.vbyte
local-root:   <EXAMPLE>/ls_repo/
config-db:    <EXAMPLE>/SOFTBRIDGE/__vbglobal__
project-code: 2af32b408b9b2d7e1ea8320e59eab03657e32469
checkout:     72666cf64d1691c070a9e6421f20ce8c48a3fe50 2026-11-19 02:31:06 UTC
tags:         trunk
comment:      initial empty check-in (user: frankli)
check-ins:    1
  • Add and commit file

$ vb sys mkdir src
$ vb sys echo "int main(){}" > src/main.c
$ vb sys echo "test" > test.txt
$ vb sys echo "README" > README.md
$ vb sys echo "extra file" > extra.txt
$ vb add src test.txt README.md
ADDED  README.md
ADDED  src/main.c
ADDED  test.txt
$ vb ci -m "seed"
Committed version: f21632a3ed60e6434e521416c172935e3d0c5558e97dd91258bdb8e89a480a56
  • List files in repository

$ vb ls --tree
<EXAMPLE>/ls_repo/
├── README.md
├── src
│   └── main.c
└── test.txt

See Also

See also

changes, extras, status, tree