Project · editor · container — simplified
This project has been archived.
The maintainers of this project have marked this project as archived. No new releases are expected.
Project description
dev-code
_ _
| | | |
__| | _____ ________ ___ ___ __| | ___
/ _` |/ _ \ \ / /______/ __/ _ \ / _` |/ _ \
| (_| | __/\ V / | (_| (_) | (_| | __/
\__,_|\___| \_/ \___\___/ \__,_|\___|
project · editor · container — simplified
One command. Any project. The right devcontainer.
dev-code is a CLI that opens any project in VS Code inside a devcontainer — instantly, using reusable templates you define once. No more hunting config files. No more copy-pasting devcontainer.json.
Install
pip install dev-code
Or run without installing via uvx:
uvx dev-code
Tip: Add an alias for the fastest workflow:
alias dev-code="uvx dev-code"
Requires: VS Code with the Dev Containers extension + Docker
Quick-start
# 1. Seed your first template
dev-code init
# 2. Open any project in a devcontainer
dev-code open dev-code ~/projects/my-app
# That's it. VS Code opens, container spins up.
Features
- One-command open —
dev-code open <template> <path>launches VS Code in a devcontainer instantly - Reusable templates — define your devcontainer once, reuse it across every project
- Built-in template — ships with the
dev-codetemplate out of the box - Custom templates — create and manage your own with
dev-code new - File sync on launch — copy credentials, configs, and secrets into the container via a
dev-codecustomization block indevcontainer.json - WSL support — works natively on Windows Subsystem for Linux
- Container dashboard — see all running devcontainers with
dev-code ps - Works with existing config — no new format, just standard
devcontainer.json
Commands
| Command | Description |
|---|---|
dev-code init |
Seed the built-in dev-code template into your template directory |
dev-code open <template> <path> |
Open a project in VS Code using a devcontainer template |
dev-code new <name> [base] |
Create a new template (optionally based on an existing one) |
dev-code edit [template] |
Open a template for editing in VS Code |
dev-code list [--long] |
List available templates |
dev-code ps |
Show running devcontainers |
Options
| Flag | Command | Description |
|---|---|---|
--dry-run |
open |
Print the devcontainer URI and copy plan without executing |
--container-folder |
open |
Override the in-container workspace path |
--timeout |
open |
Seconds to wait for container to start (default: 300) |
--edit |
new |
Open the new template for editing immediately after creation |
--long |
list |
Show full paths alongside template names |
-v, --verbose |
all | Enable debug logging |
Templates
Templates are directories containing a .devcontainer/devcontainer.json file. They live in ~/.local/share/dev-code/templates/ by default (XDG-compliant), or wherever $DEVCODE_TEMPLATE_DIR points.
Get started
dev-code init # copies the built-in dev-code template
dev-code new my-python # creates a new template from the default base
dev-code new my-node dev-code # creates a new template based on dev-code
dev-code edit my-python # open the template in VS Code to customise it
File sync — copy files into the container on launch
Add a customizations.dev-code.cp section to your devcontainer.json to copy files from your host into the running container:
{
"customizations": {
"dev-code": {
"cp": [
{
"source": "${localEnv:HOME}/.claude/credentials.json",
"target": "/home/vscode/.claude/credentials.json"
}
]
}
}
}
Supports owner, group, permissions, and Override fields per entry. Use source/. to copy the contents of a directory.
Contributing
Contributions are welcome! To get started:
git clone https://github.com/dacrystal/dev-code
dev-code open dev-code ./dev-code
The repo includes a dev-code devcontainer — open it with itself.
Please open an issue before submitting large changes.
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dev_code-0.1.2.tar.gz.
File metadata
- Download URL: dev_code-0.1.2.tar.gz
- Upload date:
- Size: 41.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
819a9e839888f1fabf9fa151adf9a919ad15dc4ea2ef178f5eac5322c7f6aa91
|
|
| MD5 |
00b7288a56a81e70a338aba8e0297b96
|
|
| BLAKE2b-256 |
b2f298537123c6d825b4ad53d9635ad524e24fc5fbbbf3ddac9768a9ef91a548
|
Provenance
The following attestation bundles were made for dev_code-0.1.2.tar.gz:
Publisher:
publish.yml on dacrystal/dev-code
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dev_code-0.1.2.tar.gz -
Subject digest:
819a9e839888f1fabf9fa151adf9a919ad15dc4ea2ef178f5eac5322c7f6aa91 - Sigstore transparency entry: 1162530558
- Sigstore integration time:
-
Permalink:
dacrystal/dev-code@e21fffc0635cd1b6118c6475ee14ee7753aeebb4 -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/dacrystal
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@e21fffc0635cd1b6118c6475ee14ee7753aeebb4 -
Trigger Event:
push
-
Statement type:
File details
Details for the file dev_code-0.1.2-py3-none-any.whl.
File metadata
- Download URL: dev_code-0.1.2-py3-none-any.whl
- Upload date:
- Size: 12.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0afe88422d137203c6e2c6b843bb8370ad721c1da9801045e1c26276c8ebb5a7
|
|
| MD5 |
f3332ce5d15e456fca46264061f9240b
|
|
| BLAKE2b-256 |
2caaa387e31d495ae5831d4522e9dba27250facf2ebb930399986466bf890c3b
|
Provenance
The following attestation bundles were made for dev_code-0.1.2-py3-none-any.whl:
Publisher:
publish.yml on dacrystal/dev-code
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dev_code-0.1.2-py3-none-any.whl -
Subject digest:
0afe88422d137203c6e2c6b843bb8370ad721c1da9801045e1c26276c8ebb5a7 - Sigstore transparency entry: 1162530714
- Sigstore integration time:
-
Permalink:
dacrystal/dev-code@e21fffc0635cd1b6118c6475ee14ee7753aeebb4 -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/dacrystal
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@e21fffc0635cd1b6118c6475ee14ee7753aeebb4 -
Trigger Event:
push
-
Statement type: