vix reset
vix reset resets the local project state.
It runs vix clean, then runs vix install.
Use it when you want to remove local generated project state and reinstall project dependencies in one command.
vix resetOverview
vix reset is the full project-local reset command.
It performs two steps:
1. vix clean
2. vix installThis is useful when your local project state is stale, broken, or needs to be regenerated from a clean dependency install.
It only affects the current project.
It does not remove the global Vix directory.
Usage
vix resetvix reset does not accept arguments in the current implementation.
If you pass any argument, Vix prints the help output.
What it does
vix reset runs:
vix cleanthen:
vix installThe clean step removes local project cache directories.
The install step reinstalls project dependencies from the project lockfile.
What it removes
Because vix reset calls vix clean, it removes:
.vix/
build/from the current project.
What it reinstalls
Because vix reset calls vix install, it reinstalls dependencies from:
vix.lockand regenerates project dependency integration state.
Typical generated files or folders may include:
.vix/
.vix/deps/
.vix/vix_deps.cmakedepending on the project and dependency setup.
What it does not remove
vix reset does not remove global Vix state.
It does not remove:
~/.vix/
~/.vix/registry/
~/.vix/store/
~/.vix/global/
~/.vix/cache/So global packages, registry metadata, global store data, and global caches remain available.
Basic usage
Run it inside a Vix project:
cd api
vix resetOutput shape:
Reset
cleaning project cache...
Clean
removing .vix/
removing build/
✔ Project cache cleaned
reinstalling project dependencies...
...
✔ Project reset completeIf the clean step fails, reset stops.
If the install step fails, reset stops.
Equivalent manual workflow
These are equivalent:
vix resetand:
vix clean
vix installUse vix reset when you want the full workflow in one command.
When to use it
Use vix reset when:
dependency integration files are stale
.vix/ state is broken
a project install behaves strangely
you want a clean local dependency reinstall
you want to rebuild project state after changing dependency files
you want to recover from local generated-state issuesCommon flow:
vix reset
vix buildor:
vix reset
vix devReset before development
vix reset
vix devUse this when development mode behaves strangely because local generated state may be stale.
Reset before validation
vix reset
vix check --testsUse this when you want to validate the project from a fresh local install state.
Reset before a release build
vix reset
vix build --preset releaseUse this when preparing a release build and you want dependency state to be regenerated first.
Reset after dependency issues
vix registry sync
vix reset
vix buildUse this when dependency metadata may be outdated or local dependency state may be broken.
Difference between vix clean and vix reset
| Command | Purpose |
|---|---|
vix clean | Remove local project cache directories. |
vix reset | Run vix clean, then run vix install. |
Use vix clean when you only want to remove generated project state.
Use vix reset when you want cleanup plus dependency reinstall.
Difference between vix reset and vix install
| Command | Purpose |
|---|---|
vix install | Install dependencies from the lockfile. |
vix reset | Clean local state first, then install dependencies. |
Use vix install after cloning a clean project.
Use vix reset when the local generated state already exists and may be wrong.
Difference between vix reset and global cleanup
vix reset is project-local.
It does not clean:
global registry index
global package store
global installed packages
global artifact cacheFor global inspection, use:
vix infoFor package store cleanup, use:
vix store path
vix store gc --project --dry-runFailure behavior
vix reset runs the clean step first.
If clean fails, Vix prints:
reset failed during cleanand returns the clean command exit code.
Then it runs install.
If install fails, Vix prints:
reset failed during installand returns the install command exit code.
If both steps succeed, Vix prints:
Project reset completeArguments
The current implementation does not accept extra arguments.
Correct:
vix resetWrong:
vix reset --force
vix reset --clean
vix reset apiIf arguments are provided, Vix shows the help output.
Options
vix reset currently has no options.
| Command | Description |
|---|---|
vix reset | Clean and reinstall project dependencies. |
vix reset --help | Show command help. |
Commands reference
| Command | Description |
|---|---|
vix reset | Run vix clean, then vix install. |
vix clean | Remove .vix/ and build/. |
vix install | Install project dependencies from vix.lock. |
vix build | Build the project. |
vix dev | Run the project in development mode. |
vix check | Validate project health. |
vix info | Inspect Vix paths, caches, and local state. |
Common workflows
Reset project state
vix resetReset before development
vix reset
vix devReset before validation
vix reset
vix check --testsReset before release build
vix reset
vix build --preset releaseReset after dependency problems
vix registry sync
vix reset
vix buildManual equivalent
vix clean
vix installCommon mistakes
Running outside the project directory
Wrong:
vix new api
vix resetCorrect:
vix new api
cd api
vix resetvix reset works on the current directory.
Using reset when only a rebuild is needed
If you only need to rebuild, use:
vix buildIf you need a clean build directory, use:
vix clean
vix buildUse vix reset when dependency state also needs to be regenerated.
Expecting reset to update dependency versions
vix reset runs vix install.
It installs the versions already pinned in:
vix.lockIt does not update dependencies to newer versions.
To update dependencies, use:
vix update --installExpecting reset to refresh the registry
vix reset does not run:
vix registry syncIf packages cannot be found or registry metadata is stale, run:
vix registry sync
vix resetExpecting reset to remove global cache
vix reset does not remove:
~/.vix/Use vix info and vix store for global state inspection.
Passing options to reset
Wrong:
vix reset --forceCorrect:
vix resetThe current command has no options.
Troubleshooting
reset failed during clean
The clean step failed.
Check permissions on:
.vix/
build/Then try:
vix cleanIf needed, remove the folders manually.
reset failed during install
The install step failed.
Common causes:
missing vix.lock
invalid lockfile
registry not synced
dependency not found
network or git issue
broken package metadataTry:
vix registry sync
vix installThen:
vix resetMissing lockfile
If the project does not have:
vix.lockvix install may fail depending on the project setup.
Add dependencies with:
vix add <namespace>/<name>or regenerate dependency state using the correct project workflow.
Registry not synced
If install cannot find a package, run:
vix registry sync
vix resetNothing was cleaned
If .vix/ and build/ do not exist, vix clean reports:
Nothing to cleanThat is not an error.
vix reset can still continue to vix install.
Project still fails after reset
Run:
vix doctor
vix info
vix check --testsIf the issue is dependency-related:
vix registry sync
vix reset
vix check --testsBest practices
Run vix reset from the project root.
Use it when dependency integration state looks broken.
Use vix registry sync before reset if package metadata may be outdated.
Use vix install instead of vix reset after a fresh clone when no generated state exists yet.
Use vix clean instead of vix reset when you only want to remove local build state.
Use vix update --install when you want newer dependency versions.
Use vix info before touching global cache or store data.
Related commands
| Command | Purpose |
|---|---|
vix clean | Remove local project cache directories. |
vix install | Install dependencies from vix.lock. |
vix update | Resolve newer dependency versions and rewrite the lockfile. |
vix add | Add a dependency to the project. |
vix remove | Remove a dependency from the project. |
vix registry sync | Refresh registry metadata. |
vix build | Build the project. |
vix dev | Run development mode. |
vix check | Validate project health. |
vix info | Show Vix paths and local state. |
vix doctor | Diagnose environment health. |
Next step
Continue with dependency management.