<?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: axelRubioMDC</title>
    <description>The latest articles on DEV Community by axelRubioMDC (@arubiomdc).</description>
    <link>https://dev.to/arubiomdc</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%2F3965482%2F654c5212-4f32-473d-ba3a-fe430ed6c25a.png</url>
      <title>DEV Community: axelRubioMDC</title>
      <link>https://dev.to/arubiomdc</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/arubiomdc"/>
    <language>en</language>
    <item>
      <title>I Got Tired of Wasting 1 Hour on Project Setup, So I Built a CLI</title>
      <dc:creator>axelRubioMDC</dc:creator>
      <pubDate>Wed, 03 Jun 2026 00:36:38 +0000</pubDate>
      <link>https://dev.to/arubiomdc/i-got-tired-of-wasting-1-hour-on-project-setup-so-i-built-a-cli-2bk0</link>
      <guid>https://dev.to/arubiomdc/i-got-tired-of-wasting-1-hour-on-project-setup-so-i-built-a-cli-2bk0</guid>
      <description>&lt;p&gt;Every time I started a new project, I had to do the same thing manually:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Create the repo on GitHub&lt;/li&gt;
&lt;li&gt;Set up branches (&lt;code&gt;main&lt;/code&gt;, &lt;code&gt;develop&lt;/code&gt;, &lt;code&gt;staging&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;Protect &lt;code&gt;main&lt;/code&gt; with PR rules&lt;/li&gt;
&lt;li&gt;Clone it locally&lt;/li&gt;
&lt;li&gt;Configure the CI/CD pipeline&lt;/li&gt;
&lt;li&gt;Install dependencies&lt;/li&gt;
&lt;li&gt;Open VS Code&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That's &lt;strong&gt;30 to 60 minutes of pure repetition&lt;/strong&gt; before writing a single line of actual code.&lt;br&gt;
So I automated all of it.&lt;/p&gt;


&lt;h2&gt;
  
  
  Introducing create-my-stack-cli
&lt;/h2&gt;

&lt;p&gt;A CLI that does everything above with one command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx create-my-stack-cli my-project
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It asks you a few questions interactively:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;? What's the project name? my-project
? Which stack do you prefer? Node.js + Express
? Which database? PostgreSQL
? Set up CI/CD? GitHub Actions
? Your GitHub Personal Access Token? [hidden]
? Private repository? No
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;And then it runs everything automatically:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;✔ Repository created.
✔ develop and staging branches created.
✔ main branch protected.
✔ Repository cloned locally.
✔ Base files generated (.env.example, README.md).
✔ Dependencies installed.
✔ Project opened in VS Code.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;From zero to fully configured project in under 60 seconds.&lt;/p&gt;




&lt;h2&gt;
  
  
  What it does under the hood
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. GitHub Integration
&lt;/h3&gt;

&lt;p&gt;Uses the GitHub API via &lt;code&gt;@octokit/rest&lt;/code&gt; to create the repo, set up branches from the &lt;code&gt;main&lt;/code&gt; SHA, and configure branch protection rules (requires PR reviews before merging).&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Base file generation
&lt;/h3&gt;

&lt;p&gt;Generates an &lt;code&gt;.env.example&lt;/code&gt; with the right variables depending on the database you chose:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;PostgreSQL&lt;/strong&gt; → &lt;code&gt;DATABASE_URL=postgresql://user:password@localhost:5432/dbname&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;MongoDB&lt;/strong&gt; → &lt;code&gt;MONGODB_URI=mongodb://localhost:27017/dbname&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;MySQL&lt;/strong&gt; → &lt;code&gt;MYSQL_HOST&lt;/code&gt;, &lt;code&gt;MYSQL_PORT&lt;/code&gt;, &lt;code&gt;MYSQL_USER&lt;/code&gt;, etc.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Also generates a &lt;code&gt;README.md&lt;/code&gt; with the project name, stack, and quick start instructions.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. CI/CD out of the box
&lt;/h3&gt;

&lt;p&gt;Copies the right GitHub Actions workflow depending on your stack:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;
&lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;CI/CD - Node.js + Express&lt;/span&gt;
&lt;span class="na"&gt;on&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
 &lt;span class="na"&gt;push&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
   &lt;span class="na"&gt;branches&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="pi"&gt;[&lt;/span&gt;&lt;span class="nv"&gt;main&lt;/span&gt;&lt;span class="pi"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;develop&lt;/span&gt;&lt;span class="pi"&gt;]&lt;/span&gt;
 &lt;span class="na"&gt;pull_request&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
   &lt;span class="na"&gt;branches&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="pi"&gt;[&lt;/span&gt;&lt;span class="nv"&gt;main&lt;/span&gt;&lt;span class="pi"&gt;]&lt;/span&gt;
&lt;span class="na"&gt;jobs&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
 &lt;span class="na"&gt;build-and-test&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
   &lt;span class="na"&gt;runs-on&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;ubuntu-latest&lt;/span&gt;
   &lt;span class="na"&gt;steps&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
     &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;uses&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;actions/checkout@v4&lt;/span&gt;
     &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;uses&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;actions/setup-node@v4&lt;/span&gt;
       &lt;span class="na"&gt;with&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
         &lt;span class="na"&gt;node-version&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'&lt;/span&gt;&lt;span class="s"&gt;18'&lt;/span&gt;
         &lt;span class="na"&gt;cache&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'&lt;/span&gt;&lt;span class="s"&gt;npm'&lt;/span&gt;
     &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;run&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;npm ci&lt;/span&gt;
     &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;run&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;npm run lint --if-present&lt;/span&gt;
     &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;run&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;npm test --if-present&lt;/span&gt;
     &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;run&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;npm run build --if-present&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  4. Local setup
&lt;/h3&gt;

&lt;p&gt;Clones the repo, installs dependencies with &lt;code&gt;npm install&lt;/code&gt;, and opens VS Code automatically — all using &lt;code&gt;execa&lt;/code&gt; to run shell commands from Node.js.&lt;/p&gt;




&lt;h2&gt;
  
  
  Supported stacks
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Stack&lt;/th&gt;
&lt;th&gt;Database&lt;/th&gt;
&lt;th&gt;CI/CD&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Node.js + Express&lt;/td&gt;
&lt;td&gt;PostgreSQL, MongoDB, MySQL&lt;/td&gt;
&lt;td&gt;GitHub Actions&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Node.js + Fastify&lt;/td&gt;
&lt;td&gt;PostgreSQL, MongoDB, MySQL&lt;/td&gt;
&lt;td&gt;GitHub Actions&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Next.js&lt;/td&gt;
&lt;td&gt;PostgreSQL, MongoDB, MySQL&lt;/td&gt;
&lt;td&gt;GitHub Actions&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;




&lt;h2&gt;
  
  
  Tech stack
&lt;/h2&gt;

&lt;p&gt;Built with:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;TypeScript&lt;/strong&gt; — for type safety&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;commander&lt;/strong&gt; — CLI argument parsing&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;inquirer&lt;/strong&gt; — interactive prompts&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;@octokit/rest&lt;/strong&gt; — GitHub API&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;ora&lt;/strong&gt; — terminal spinners&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;chalk&lt;/strong&gt; — terminal colors&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;execa&lt;/strong&gt; — shell command execution&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;npx create-my-stack-cli my-project
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You'll need a GitHub Personal Access Token with &lt;code&gt;repo&lt;/code&gt; and &lt;code&gt;workflow&lt;/code&gt; scopes.&lt;br&gt;
→ &lt;a href="https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens" rel="noopener noreferrer"&gt;How to create one&lt;/a&gt;&lt;br&gt;
📦 npm: &lt;a href="https://www.npmjs.com/package/create-my-stack-cli" rel="noopener noreferrer"&gt;https://www.npmjs.com/package/create-my-stack-cli&lt;/a&gt;&lt;br&gt;
🐙 GitHub: &lt;a href="https://github.com/aRubioMDC/create-my-stack" rel="noopener noreferrer"&gt;https://github.com/aRubioMDC/create-my-stack&lt;/a&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  What's next (Pro version)
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Auth pre-configured (JWT + bcrypt)&lt;/li&gt;
&lt;li&gt;Docker + docker-compose&lt;/li&gt;
&lt;li&gt;Prisma pre-configured&lt;/li&gt;
&lt;li&gt;Stripe integration&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;If this saved you time, drop a ⭐ on GitHub or leave a comment. Feedback and PRs are welcome!&lt;/p&gt;

</description>
      <category>node</category>
      <category>cli</category>
      <category>typescript</category>
      <category>githubactions</category>
    </item>
  </channel>
</rss>
