on this page ▾
[ REFERENCE ] REFERENCE · CLI

CLI reference#

Every rvc command, generated from the CLI definition. Every command accepts --json anywhere on the line for machine-readable output.

Commands#

rvc addStage files (content is hashed and stored immediately). rvc artifactgroupRegister and link research artifacts (figures, tables, models, results, code). rvc askAsk about your research history (answers cite internal records). rvc auditCheck research integrity: stale numbers, missing evidence, outdated data, leakage, … rvc branchgroupList, create, delete, rename and compare research branches. rvc checkoutRestore a historical research state (branch → attached, other revisions → detached HEAD). rvc claimgroupScientific claim registry with evidence links. rvc cloneClone a remote research repository into a new directory. rvc commitRecord the staged research state as an immutable commit. rvc configgroupRead and write repository configuration (.rvc/config.toml). rvc datasetgroupVersion datasets and inspect their differences. rvc decisiongroupResearch decisions and the decision timeline. rvc diffCompare research states. No args: working tree vs index. One arg: rev vs working tree/index. rvc doctorDiagnose the environment and repository. rvc experimentsgroupInspect, compare, import and recover experiment runs. rvc exportExport the repository (objects + refs) to a portable bundle (.rvcbundle, tar). rvc fetchDownload new objects and update remote-tracking branches. rvc fsckVerify integrity of every reachable object. rvc gcRemove unreachable objects older than the grace period (default 14 days). rvc graphgroupExplore the research knowledge graph. rvc hypothesisgroupTrack hypotheses and their evolving status. rvc importImport a bundle into the current repository (refs land under refs/remotes/bundle/) or a new one. rvc initInitialize a research repository (works alongside an existing Git repo). rvc logShow commit history. rvc loginStore an API token for a server (0600 file in ~/.config/rvc). rvc manuscriptgroupManuscripts as versioned research objects. rvc mergeThree-way merge of research branches (files, entities, relationships). rvc notegroupResearch notes. rvc pullFetch from a remote and merge its branch into the current one. rvc pushUpload missing objects and atomically update remote refs. rvc releasegroupImmutable research releases (submissions, rebuttals, camera-ready). rvc remotegroupManage remotes (cloud or self-hosted ResearchVC servers). rvc reproduceReproducibility report for a run; optionally re-execute it and compare results. rvc restoreRestore files (manuscript versions, configs, …) from a historical state. rvc reviewgroupReviewer comments and rebuttal responses. rvc rmRemove files from tracking (and from disk unless --cached). rvc runRun a command as a tracked experiment: rvc run --name baseline -- python train.py rvc showShow a commit, research entity, or raw object. rvc statusShow staged, modified and untracked files plus staged research changes. rvc switchSwitch research branch (``-c`` creates it). rvc taggroupImmutable named pointers to commits. rvc watchWatch tracked files and report (optionally stage) changes. Polling-based, Ctrl-C to stop.

Exit codes#

Errors print as {"error", "message", "hint"} with --json, and every error class has a stable exit code for scripting:

1rvc_error
2not_a_repository
3object_not_found
4corrupt_object
5invalid_revision
6ref_conflict
7locked
8dirty_working_tree
9merge_conflict
10validation_error
11nothing_to_commit
12remote_error
13immutable
14policy_blocked

generated from the CLI definition · scripts/gen_docs.py