<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Thanasis Akriotis</title>
    <description>The latest articles on DEV Community by Thanasis Akriotis (@tha_akr_1b7a6fe8aac1f20b9).</description>
    <link>https://dev.to/tha_akr_1b7a6fe8aac1f20b9</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3959757%2Fac25601c-5ab3-49db-8244-9091179443b4.png</url>
      <title>DEV Community: Thanasis Akriotis</title>
      <link>https://dev.to/tha_akr_1b7a6fe8aac1f20b9</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/tha_akr_1b7a6fe8aac1f20b9"/>
    <language>en</language>
    <item>
      <title>Oneconfig: A CLI That Detects Your Stack and Provisions Your Dev Environment</title>
      <dc:creator>Thanasis Akriotis</dc:creator>
      <pubDate>Sat, 30 May 2026 11:22:18 +0000</pubDate>
      <link>https://dev.to/tha_akr_1b7a6fe8aac1f20b9/oneconfig-a-cli-that-detects-your-stack-and-provisions-your-dev-environment-4djc</link>
      <guid>https://dev.to/tha_akr_1b7a6fe8aac1f20b9/oneconfig-a-cli-that-detects-your-stack-and-provisions-your-dev-environment-4djc</guid>
      <description>&lt;p&gt;Every repo has the same onboarding ritual: figure out the stack, install the right tools, start the right services, and hope the README is still accurate.&lt;/p&gt;

&lt;p&gt;I built Oneconfig because I got tired of writing READMEs that went stale.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it does
&lt;/h2&gt;

&lt;p&gt;Oneconfig is a single Go binary with two commands:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;oneconfig generate&lt;/code&gt; recursively scans your project — including monorepos with &lt;code&gt;packages/&lt;/code&gt; and &lt;code&gt;apps/&lt;/code&gt; workspaces — and infers your entire stack: languages, runtimes, package managers, frameworks, databases, env files, Dockerfiles, Makefiles, Procfiles. It outputs a single &lt;code&gt;oneconfig.yml&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;oneconfig up&lt;/code&gt; reads that YAML and executes a deterministic pipeline: install runtimes, resolve dependencies, inject env vars, start services in dependency order, run health checks, then execute post-start steps like migrations and seeds.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why not just use Docker Compose?
&lt;/h2&gt;

&lt;p&gt;Docker Compose and devcontainers solve this problem, but they require upfront configuration. You write a Dockerfile. You define services. You maintain it.&lt;/p&gt;

&lt;p&gt;Oneconfig assumes you already have a working project with lockfiles and config files. It reads what's there and generates the setup automatically. If you outgrow it, the generated YAML is a useful starting point for something heavier.&lt;/p&gt;

&lt;h2&gt;
  
  
  What's detected today
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Languages: Node.js, Python, Go, Rust, Java, Ruby&lt;/li&gt;
&lt;li&gt;Package managers: npm, yarn, pnpm, bun, pip, Poetry, uv, Pipenv, Cargo, Maven, Gradle, Bundler&lt;/li&gt;
&lt;li&gt;Frameworks: Next.js, Django, FastAPI, Flask, Streamlit, Gradio, Rails, Sinatra&lt;/li&gt;
&lt;li&gt;Databases: PostgreSQL, MongoDB, Redis, MySQL (spun up via Docker)&lt;/li&gt;
&lt;li&gt;Infrastructure: Dockerfile, docker-compose.yml, Makefile, Procfile&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The detection engine
&lt;/h2&gt;

&lt;p&gt;The core is a simple &lt;code&gt;Detector&lt;/code&gt; interface:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight go"&gt;&lt;code&gt;&lt;span class="k"&gt;type&lt;/span&gt; &lt;span class="n"&gt;Detector&lt;/span&gt; &lt;span class="k"&gt;interface&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;Detect&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;projectDir&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;result&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="n"&gt;ScanResult&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="kt"&gt;error&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Adding a new ecosystem is one file. The engine recursively walks your repo, scores matches, and resolves conflicts when multiple detectors hit the same files.&lt;/p&gt;

&lt;p&gt;Config validation happens against a JSON Schema before &lt;code&gt;up&lt;/code&gt; runs anything. Services start in topologically sorted order. Health checks use TCP and HTTP probes with configurable timeouts.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it's not
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Not a container runtime or replacement for Docker in production&lt;/li&gt;
&lt;li&gt;Not a CI/CD tool — purely for local dev environment setup&lt;/li&gt;
&lt;li&gt;Not magic — undocumented system-level dependencies still require manual addition&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;go &lt;span class="nb"&gt;install &lt;/span&gt;github.com/Thanos2002/Oneconfig@latest
&lt;span class="nb"&gt;cd &lt;/span&gt;your-project/
oneconfig generate
oneconfig up
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The generated &lt;code&gt;oneconfig.yml&lt;/code&gt; is meant to be committed alongside your code — executable documentation for your dev setup.&lt;/p&gt;

&lt;p&gt;Source: &lt;a href="https://github.com/Thanos2002/Oneconfig" rel="noopener noreferrer"&gt;https://github.com/Thanos2002/Oneconfig&lt;/a&gt; (MIT)&lt;/p&gt;

</description>
      <category>go</category>
      <category>cli</category>
      <category>devops</category>
    </item>
  </channel>
</rss>
