Repository navigation
Releases
v1.2 Fort Quapelle
v1.2 Fort Quapelle
codenv v1.2 - Fort Quapelle
Downloads
| Platform | Asset |
|---|---|
| Windows x64 | codenv-windows-x64.zip |
| Windows arm64 | codenv-windows-arm64.zip |
Install with one command in PowerShell:
```powershell
irm https://github.com/Tijani127/codenv/releases/latest/download/install.ps1 | iex
```
Or keep the portable zip: put codenv.exe anywhere on your PATH.
codenv is Windows-only by design: it is backed by Scoop and relies on Windows
PATH semantics. It requires PowerShell and git.
Check your setup at any time with codenv doctor.
Changelog
Staying current: codenv shows you what is stale before you update, and
templates get real discovery with their scripts listed.
Added
codenv outdated [--global] [--missing] [--no-sync]compares every
top-level locked package against the latest manifest in its bucket and
printsPACKAGE / CURRENT / LATEST / MOVES WITH. Pinned packages say they
move withcodenv update --all; unpinned ones withcodenv install. The
command is read-only: nothing is resolved, installed or written.codenv templatesis promoted to a top-level command (still available
ascodenv create templates), and now lists the scripts each builtin
template scaffolds, socodenv create <tpl>never needs guessing.
v1.1 Regina
v1.1 Regina
codenv v1.1 - Regina
Downloads
| Platform | Asset |
|---|---|
| Windows x64 | codenv-windows-x64.zip |
| Windows arm64 | codenv-windows-arm64.zip |
Install with one command in PowerShell:
```powershell
irm https://github.com/Tijani127/codenv/releases/latest/download/install.ps1 | iex
```
Or keep the portable zip: put codenv.exe anywhere on your PATH.
codenv is Windows-only by design: it is backed by Scoop and relies on Windows
PATH semantics. It requires PowerShell and git.
Check your setup at any time with codenv doctor.
Changelog
The installer release: codenv gets a one-line installation story, store
maintenance, secret storage, CI generation, and template growth.
Added
- One-line installer.
irm https://github.com/Tijani127/codenv/releases/latest/download/install.ps1 | iexdownloads the right build for the machine's architecture, installs to%LOCALAPPDATA%\Programs\codenvand adds it to the userPATH. Windows PowerShell 5.1 compatible. codenv gc [--dry-run] [--force]reclaims store space: every installed version no registered project's lockfile pins is deleted, stale index entries are pruned, empty app directories are removed. The store's own Scoop installation, pinned versions andcurrentjunction targets are always spared.- Windows Credential Manager secret provider.
codenv secrets set <NAME> [--stdin]stores a value undercodenv:secret:<NAME>; a shell falls back to it for declared secrets that are unset in the environment, andcodenv secrets rm --storeddeletes it. codenv generate ciwrites.github/workflows/codenv.ymlthat installs codenv from its releases, caches Scoop buckets and the store keyed onhashFiles('codenv.lock.json'), and runs your command onwindows-latest.- Environment drift notice. An interactive
codenv shellcompares its top-level pins against the previous shell's snapshot in.codenv/env.jsonand warns in one line when they changed. codenv creategrows remote and local templates. Template sources are builtin →~/.codenv/templates(orCODEENV_TEMPLATES) → a git repository (owner/repo,github:owner/repo, or a full URL), recursively copied with{{PROJECT}}/{{TITLE}}/{{MODULE}}substitution; a new--refflag picks a branch or tag.
v1.0 Saskatchewan
v1.0 Saskatchewan
codenv v1.0 - Saskatchewan
Downloads
| Platform | Asset |
|---|---|
| Windows x64 | codenv-windows-x64.zip |
| Windows arm64 | codenv-windows-arm64.zip |
No installer: unzip, then run codenv. It is a single self-contained binary.
codenv is Windows-only by design: it is backed by Scoop and relies on Windows
PATH semantics. It requires PowerShell and git.
Check your setup at any time with codenv doctor.
Changelog
First stable release. codenv creates isolated, reproducible development
environments on Windows, backed by Scoop instead of Nix,
with shims disabled.
Why shims are the problem
Scoop makes every program reachable through one global shim directory and adds
that directory to your persistent user PATH. That works for a general-purpose
package manager and works badly for a reproducible dev environment: two
projects cannot run different versions of the same tool, the shim directory
leaks into unrelated terminals, and GUI packages quietly add Start Menu
shortcuts.
codenv takes a different approach. Scoop's shim files record the resolved
target of every binary it installs, so codenv reads them to learn the exact
directories a package contributes, records that in a per-store index, then
deletes the shim directory. PATH is composed from concrete
apps/<pkg>/<version> directories. Scoop's current junction is never used
for activation, so a background scoop update cannot change what an existing
environment resolves to.
Added
Environments
codenv initcreates acodenv.json;codenv add/rm/install/update/
listmanage packages.codenv.lock.jsonpins exact versions, buckets and architectures. A pinned
version that cannot be installed is a hard error, never a silent
substitution, because an environment that quietly runs the wrong version is
worse than one that says it cannot be built.- Multiple versions of one package coexist in a shared store. Two projects
can pin 7-Zip 24.09 and 26.03 at the same time, from one store. store: "project"gives a project a private store under.codenv/store.includemerges othercodenv.jsonfiles.- Every install snapshots and restores your persistent
PATH,SCOOP_PATH
andPSModulePath, even when Scoop fails, and removes Start Menu shortcuts
that an install created.
Shell and running things
codenv shellopens an isolated shell with acodenv:prompt marker;
codenv shell <cmd>runs one command inside it.codenv runexecutes a script fromcodenv.jsonor any command, propagating
the child's exit code.shell.init_hookruns on every shell and script start.--purereduces the environment to a minimal set,--env/--env-fileset
variables,codenv shellenvprints PowerShell, bash or cmd code for
direnv and editor integrations.
Global packages
codenv global add/rm/list/install/update/run/shellenv/pull/push/pathmanage
a set of tools available to every project, in their own store.
Services
codenv services up/start/stop/restart/ls/logs/cleansupervise the services
incodenv-services.json, natively, with no external process manager.
Supportsdepends_on, per-service environment and working directories, and
background or streaming-log operation.
Secrets
codenv secrets add/from/list/rm/downloaddeclare which variables a project
needs. Values are never stored. They are read from your environment when
a shell or script starts, socodenv.jsonstays safe to commit.secrets.fromremaps a secret onto other variables, trying each in order,
which lets one project point at a developer's local database and another at
CI's.- A missing source variable is a hard error for
shell/runand a warning for
shellenv, because editor integrations invoke the latter unconditionally. secrets downloadredacts by default;--valuesis an explicit opt-in.
Discovery and diagnostics
codenv searchsearches the local buckets offline.codenv infoshows a manifest: version, licence, dependencies, binaries.codenv doctorchecks the things that actually break: missing git, an
unwritable store, bucket manifests left dirty by autoupdate, a stray shims
directory, stale index entries, uninstalled pins, unset secret sources, and
packages already on your systemPATH.doctor --fixrepairs what is safe
to repair and never installs or removes packages.
Project scaffolding and generation
codenv create <template>scaffolds a project with a pinned toolchain.
Templates:go,python,node,rust,minimal.codenv generate dockerfile|devcontainer|direnv|readmeproduces supporting
files.codenv cache info|clean, and shell completions for PowerShell, bash, zsh
and fish.
Known limitations
- Windows only. Scoop and Windows
PATHsemantics are the foundation. The
code compiles elsewhere, but the tool cannot function there. - Requires git. Scoop is a git checkout and codenv clones its buckets.
- Historical version pins are limited by Scoop. Resolving a version that is
not the bucket's current one relies on Scoop's autoupdate, which downloads the
release to compute hashes. Releases from before arm64 Windows existed
(for exampleripgrep@14.1.1) cannot be resolved this way. - Versioned Python is published as separate packages.
python@3.11is not a
valid reference; useversions/python311. codenv detects this and says so. - The package dependency graph is effectively flat. None of the 4,815
manifests inmain,extrasandversionsdeclare adependencieskey;
modern Scoop usespre_install/installerscripts instead.
Not implemented
- Jetify Cloud equivalents:
auth, and cloudsecrets/cache. There is
nothing to authenticate against locally. - Devbox plugins, which describe Nix build setup. Scoop packages are prebuilt.
devbox createstyle templates from a remote catalogue.- Linux and macOS releases.
generate dockerfileemits a Windows container
Dockerfile, since a Linux image cannot run Scoop.