Skip to content

Management environment Java、Maven、Node、LLM

License

Notifications You must be signed in to change notification settings

Protagonistss/fnva

Repository files navigation

fnva - Fast Environment Version Alter

npm version crates.io License: MIT

中文文档 · Full English · Docs

Cross-platform environment switcher for Java, Claude Code (CC), and LLM setups. Rust single binary with fast startup and zero runtime dependencies.

Install

  • npm: npm install -g fnva
  • Cargo: cargo install fnva
  • Binary: download from Releases and add to PATH.

Quick start

  • Init shell (Bash/Zsh): eval "$(fnva env env --shell bash)"
    PowerShell: fnva env env --shell powershell | Out-String | Invoke-Expression
  • Scan Java: fnva java scan
  • Switch Java for current session: eval "$(fnva java use jdk-17)"
  • Switch CC profile: eval "$(fnva cc use glmcc)"

What it does

  • Manages multiple Java, CC, and generic LLM configurations.
  • Generates shell snippets to activate environments per session or by default.
  • Stores config at ~/.fnva/config.toml (Windows: %USERPROFILE%\.fnva\config.toml).
  • Ships as a single binary; no background daemon.

Build/test locally

cargo fmt && cargo clippy --all-targets -- -D warnings
cargo test
cargo build --release

For platform bundles: npm run build:platforms

About

Management environment Java、Maven、Node、LLM

Topics

Resources

License

Stars

Watchers

Forks

Contributors 2

  •  
  •