Skip to content

Releases

v1.2 Fort Quapelle

Choose a tag to compare

@github-actions github-actions released this 11 Nov 19:01

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
    prints PACKAGE / CURRENT / LATEST / MOVES WITH. Pinned packages say they
    move with codenv update --all; unpinned ones with codenv install. The
    command is read-only: nothing is resolved, installed or written.
  • codenv templates is promoted to a top-level command (still available
    as codenv create templates), and now lists the scripts each builtin
    template scaffolds, so codenv create <tpl> never needs guessing.

v1.1 Regina

Choose a tag to compare

@github-actions github-actions released this 08 Nov 03:06

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 | iex downloads the right build for the machine's architecture, installs to %LOCALAPPDATA%\Programs\codenv and adds it to the user PATH. 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 and current junction targets are always spared.
  • Windows Credential Manager secret provider. codenv secrets set <NAME> [--stdin] stores a value under codenv:secret:<NAME>; a shell falls back to it for declared secrets that are unset in the environment, and codenv secrets rm --stored deletes it.
  • codenv generate ci writes .github/workflows/codenv.yml that installs codenv from its releases, caches Scoop buckets and the store keyed on hashFiles('codenv.lock.json'), and runs your command on windows-latest.
  • Environment drift notice. An interactive codenv shell compares its top-level pins against the previous shell's snapshot in .codenv/env.json and warns in one line when they changed.
  • codenv create grows remote and local templates. Template sources are builtin → ~/.codenv/templates (or CODEENV_TEMPLATES) → a git repository (owner/repo, github:owner/repo, or a full URL), recursively copied with {{PROJECT}}/{{TITLE}}/{{MODULE}} substitution; a new --ref flag picks a branch or tag.

v1.0 Saskatchewan

Choose a tag to compare

@github-actions github-actions released this 06 Oct 01:24

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 init creates a codenv.json; codenv add/rm/install/update/
    list manage packages.
  • codenv.lock.json pins 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.
  • include merges other codenv.json files.
  • Every install snapshots and restores your persistent PATH, SCOOP_PATH
    and PSModulePath, even when Scoop fails, and removes Start Menu shortcuts
    that an install created.

Shell and running things

  • codenv shell opens an isolated shell with a codenv: prompt marker;
    codenv shell <cmd> runs one command inside it.
  • codenv run executes a script from codenv.json or any command, propagating
    the child's exit code.
  • shell.init_hook runs on every shell and script start.
  • --pure reduces the environment to a minimal set, --env/--env-file set
    variables, codenv shellenv prints PowerShell, bash or cmd code for
    direnv and editor integrations.

Global packages

  • codenv global add/rm/list/install/update/run/shellenv/pull/push/path manage
    a set of tools available to every project, in their own store.

Services

  • codenv services up/start/stop/restart/ls/logs/clean supervise the services
    in codenv-services.json, natively, with no external process manager.
    Supports depends_on, per-service environment and working directories, and
    background or streaming-log operation.

Secrets

  • codenv secrets add/from/list/rm/download declare which variables a project
    needs. Values are never stored. They are read from your environment when
    a shell or script starts, so codenv.json stays safe to commit.
  • secrets.from remaps 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/run and a warning for
    shellenv, because editor integrations invoke the latter unconditionally.
  • secrets download redacts by default; --values is an explicit opt-in.

Discovery and diagnostics

  • codenv search searches the local buckets offline.
  • codenv info shows a manifest: version, licence, dependencies, binaries.
  • codenv doctor checks 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 system PATH. doctor --fix repairs 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|readme produces supporting
    files.
  • codenv cache info|clean, and shell completions for PowerShell, bash, zsh
    and fish.

Known limitations

  • Windows only. Scoop and Windows PATH semantics 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 example ripgrep@14.1.1) cannot be resolved this way.
  • Versioned Python is published as separate packages. python@3.11 is not a
    valid reference; use versions/python311. codenv detects this and says so.
  • The package dependency graph is effectively flat. None of the 4,815
    manifests in main, extras and versions declare a dependencies key;
    modern Scoop uses pre_install/installer scripts instead.

Not implemented

  • Jetify Cloud equivalents: auth, and cloud secrets/cache. There is
    nothing to authenticate against locally.
  • Devbox plugins, which describe Nix build setup. Scoop packages are prebuilt.
  • devbox create style templates from a remote catalogue.
  • Linux and macOS releases. generate dockerfile emits a Windows container
    Dockerfile, since a Linux image cannot run Scoop.