<?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: AryanSharma9917</title>
    <description>The latest articles on DEV Community by AryanSharma9917 (@aryansharma9917).</description>
    <link>https://dev.to/aryansharma9917</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%2F508550%2F5d3bc1e7-a225-4fb4-a4f6-def4dd43384f.jpeg</url>
      <title>DEV Community: AryanSharma9917</title>
      <link>https://dev.to/aryansharma9917</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/aryansharma9917"/>
    <language>en</language>
    <item>
      <title>I Built a DevOps CLI Tool in Go – Meet Codewise-CLI</title>
      <dc:creator>AryanSharma9917</dc:creator>
      <pubDate>Mon, 14 Jul 2025 07:49:52 +0000</pubDate>
      <link>https://dev.to/aryansharma9917/i-built-a-devops-cli-tool-in-go-meet-codewise-cli-5149</link>
      <guid>https://dev.to/aryansharma9917/i-built-a-devops-cli-tool-in-go-meet-codewise-cli-5149</guid>
      <description>&lt;p&gt;Hey Devs,&lt;/p&gt;

&lt;p&gt;I'm Aryan, and over the past few weeks, I’ve been working on a project that turned into something pretty useful — a command-line tool I named &lt;strong&gt;Codewise-CLI&lt;/strong&gt;. If you're into DevOps, YAML/JSON shenanigans, or just want to automate tedious tasks, you might find it handy too.&lt;/p&gt;

&lt;p&gt;Let me take you through what Codewise-CLI is, why I built it, and how you can use it.&lt;/p&gt;




&lt;h2&gt;
  
  
  Why Codewise?
&lt;/h2&gt;

&lt;p&gt;Let’s be real — dealing with formats like &lt;code&gt;.yaml&lt;/code&gt;, &lt;code&gt;.json&lt;/code&gt;, or &lt;code&gt;.env&lt;/code&gt; in DevOps workflows can get annoying. And if you’re switching between projects and need Dockerfiles, GitHub Actions workflows, or Kubernetes manifests often, you end up copy-pasting a lot.&lt;/p&gt;

&lt;p&gt;So, I thought:&lt;/p&gt;

&lt;p&gt;“Why not build a CLI that automates these bits and lets me focus on writing actual code?”&lt;/p&gt;

&lt;p&gt;And that’s how &lt;strong&gt;Codewise&lt;/strong&gt; was born.&lt;/p&gt;




&lt;h2&gt;
  
  
  What Can Codewise-CLI Do?
&lt;/h2&gt;

&lt;p&gt;Codewise is a terminal-first tool written in &lt;strong&gt;Go&lt;/strong&gt; using &lt;strong&gt;Cobra&lt;/strong&gt; and &lt;strong&gt;Viper&lt;/strong&gt;, and it does quite a few things:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;✅ Convert between JSON ↔ YAML&lt;/li&gt;
&lt;li&gt;✅ Convert &lt;code&gt;.env&lt;/code&gt; to JSON&lt;/li&gt;
&lt;li&gt;✅ Encode/decode Base64 strings&lt;/li&gt;
&lt;li&gt;✅ Scaffold Dockerfiles for different languages&lt;/li&gt;
&lt;li&gt;✅ Generate Kubernetes manifests&lt;/li&gt;
&lt;li&gt;✅ Render &lt;code&gt;.tpl&lt;/code&gt; templates using &lt;code&gt;.yaml&lt;/code&gt; input&lt;/li&gt;
&lt;li&gt;✅ And more features coming soon...&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fpsbbbdzksh777rvt3vu1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fpsbbbdzksh777rvt3vu1.png" alt=" " width="800" height="255"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Getting Started
&lt;/h2&gt;

&lt;p&gt;To try it out, simply clone the repository, build the tool, and move it to your path:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git clone https://github.com/aryansharma9917/Codewise-CLI.git
&lt;span class="nb"&gt;cd &lt;/span&gt;Codewise-CLI
go build &lt;span class="nt"&gt;-o&lt;/span&gt; codewise main.go
&lt;span class="nb"&gt;sudo mv &lt;/span&gt;codewise /usr/local/bin/
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now, just run:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;codewise &lt;span class="nt"&gt;--help&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  A Few Quick Examples
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Convert JSON to YAML:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;codewise encode &lt;span class="nt"&gt;--input&lt;/span&gt; input.json &lt;span class="nt"&gt;--output&lt;/span&gt; output.yaml &lt;span class="nt"&gt;--type&lt;/span&gt; JTY
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Generate a Dockerfile:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;codewise generate dockerfile &lt;span class="nt"&gt;--output&lt;/span&gt; Dockerfile
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Render a GitHub Actions &lt;code&gt;.tpl&lt;/code&gt; file using values:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;codewise template &lt;span class="nt"&gt;--template&lt;/span&gt; template.tpl &lt;span class="nt"&gt;--values&lt;/span&gt; values.yaml &lt;span class="nt"&gt;--output&lt;/span&gt; rendered.yaml
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  🐳 Docker Support
&lt;/h2&gt;

&lt;p&gt;You can also run Codewise-CLI via Docker:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;docker pull aryansharma04/codewise-cli:latest
docker run &lt;span class="nt"&gt;--rm&lt;/span&gt; aryansharma04/codewise-cli:latest &lt;span class="nt"&gt;--help&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  Roadmap
&lt;/h2&gt;

&lt;p&gt;Here’s what’s coming next for Codewise:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;✅ TOML/XML conversions&lt;/li&gt;
&lt;li&gt;✅ Interactive prompts (instead of just flags)&lt;/li&gt;
&lt;li&gt;✅ Auto-generate GitHub workflows&lt;/li&gt;
&lt;li&gt;✅ &lt;code&gt;--force&lt;/code&gt; flag to overwrite existing files&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Final Thoughts
&lt;/h2&gt;

&lt;p&gt;This is just the beginning. I built Codewise to solve a problem I faced often — and if it helps even a few more developers speed up their DevOps work, that’s a win.&lt;/p&gt;

&lt;p&gt;Feel free to check it out, use it, break it, suggest improvements, or open a PR if you’re feeling generous!&lt;/p&gt;

&lt;p&gt;🔗 &lt;strong&gt;GitHub:&lt;/strong&gt; &lt;a href="https://github.com/aryansharma9917/Codewise-CLI" rel="noopener noreferrer"&gt;https://github.com/aryansharma9917/Codewise-CLI&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Thanks for reading!&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Containerization with Docker: A Beginner’s Guide</title>
      <dc:creator>AryanSharma9917</dc:creator>
      <pubDate>Wed, 09 Oct 2024 05:32:24 +0000</pubDate>
      <link>https://dev.to/aryansharma9917/containerization-with-docker-a-beginners-guide-gab</link>
      <guid>https://dev.to/aryansharma9917/containerization-with-docker-a-beginners-guide-gab</guid>
      <description>&lt;p&gt;Containerization has transformed modern software development, making it easier to build, ship, and run applications. One of the most popular tools for containerization is &lt;strong&gt;Docker&lt;/strong&gt;. This guide will introduce you to Docker and provide a step-by-step tutorial on creating and managing Docker containers.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is Docker?
&lt;/h2&gt;

&lt;p&gt;Docker is an open-source platform that automates the deployment of applications inside lightweight containers. These containers package an application with all its dependencies, ensuring that it runs consistently across different environments. The main benefits of using Docker include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Portability&lt;/strong&gt;: Applications can run on any machine that has Docker installed.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Isolation&lt;/strong&gt;: Each container operates independently, preventing conflicts between applications.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Scalability&lt;/strong&gt;: Containers can be easily replicated or scaled up/down based on demand.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Getting Started with Docker
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Prerequisites
&lt;/h3&gt;

&lt;p&gt;Before diving into Docker, ensure you have the following installed:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Docker Desktop (available for Windows, macOS, and Linux)&lt;/li&gt;
&lt;li&gt;Basic knowledge of command-line interface (CLI)&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Step 1: Building a Docker Image
&lt;/h3&gt;

&lt;p&gt;A &lt;strong&gt;Docker image&lt;/strong&gt; serves as a blueprint for your container. It contains everything needed to run your application, including code, libraries, and dependencies.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Create a Dockerfile&lt;/strong&gt;: This file contains instructions for building your image. Here’s a simple example for a Node.js application:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight docker"&gt;&lt;code&gt;   FROM node:20-alpine
   WORKDIR /app
   COPY . .
   RUN npm install --production
   CMD ["node", "index.js"]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Build the Image&lt;/strong&gt;: Navigate to the directory containing your Dockerfile and run the following command:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;   docker build &lt;span class="nt"&gt;-t&lt;/span&gt; my-node-app &lt;span class="nb"&gt;.&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Step 2: Creating and Running a Container
&lt;/h3&gt;

&lt;p&gt;Once you have built your image, you can create and run a container from it.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Run the Container&lt;/strong&gt;: Use the following command to start your container:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;   docker run &lt;span class="nt"&gt;-d&lt;/span&gt; &lt;span class="nt"&gt;-p&lt;/span&gt; 3000:3000 &lt;span class="nt"&gt;--name&lt;/span&gt; my-running-app my-node-app
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;-d&lt;/code&gt;: Runs the container in detached mode (in the background).&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;-p 3000:3000&lt;/code&gt;: Maps port 3000 on your host to port 3000 in the container.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;--name my-running-app&lt;/code&gt;: Assigns a name to your container.&lt;/li&gt;
&lt;/ul&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Verify the Container is Running&lt;/strong&gt;: Check if your container is up and running using:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;   docker ps
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Step 3: Managing Docker Containers
&lt;/h3&gt;

&lt;p&gt;Docker provides several commands to manage your containers effectively.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;List All Containers&lt;/strong&gt;:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;  docker ps &lt;span class="nt"&gt;-a&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Stop a Running Container&lt;/strong&gt;:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;  docker stop my-running-app
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Remove a Container&lt;/strong&gt;:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;  docker &lt;span class="nb"&gt;rm &lt;/span&gt;my-running-app
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Step 4: Accessing Your Application
&lt;/h3&gt;

&lt;p&gt;After running your application in a container, you can access it via your web browser at &lt;code&gt;http://localhost:3000&lt;/code&gt;. This URL corresponds to the port mapping you set up earlier.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;Docker simplifies the process of developing and deploying applications by utilizing containerization technology. With this beginner's guide, you should now be able to create and manage Docker containers effectively. As you grow more comfortable with Docker, consider exploring advanced features such as Docker Compose for managing multi-container applications or integrating Docker into CI/CD pipelines.&lt;/p&gt;

&lt;p&gt;By adopting Docker in your development workflow, you'll enhance both productivity and consistency across environments, paving the way for smoother deployments and better collaboration among teams.&lt;/p&gt;

&lt;p&gt;Citations:&lt;br&gt;
[1] &lt;a href="https://www.hostinger.in/tutorials/docker-start-a-container" rel="noopener noreferrer"&gt;https://www.hostinger.in/tutorials/docker-start-a-container&lt;/a&gt;&lt;br&gt;
[2] &lt;a href="https://docs.docker.com/reference/cli/docker/container/create/" rel="noopener noreferrer"&gt;https://docs.docker.com/reference/cli/docker/container/create/&lt;/a&gt;&lt;br&gt;
[3] &lt;a href="https://learn.microsoft.com/en-us/visualstudio/docker/tutorials/docker-tutorial" rel="noopener noreferrer"&gt;https://learn.microsoft.com/en-us/visualstudio/docker/tutorials/docker-tutorial&lt;/a&gt;&lt;br&gt;
[4] &lt;a href="https://docs.docker.com/compose/gettingstarted/" rel="noopener noreferrer"&gt;https://docs.docker.com/compose/gettingstarted/&lt;/a&gt;&lt;br&gt;
[5] &lt;a href="https://docs.docker.com/get-started/workshop/02_our_app/" rel="noopener noreferrer"&gt;https://docs.docker.com/get-started/workshop/02_our_app/&lt;/a&gt;&lt;br&gt;
[6] &lt;a href="https://learn.microsoft.com/en-us/dotnet/core/docker/build-container?pivots=dotnet-8-0&amp;amp;tabs=linux" rel="noopener noreferrer"&gt;https://learn.microsoft.com/en-us/dotnet/core/docker/build-container?pivots=dotnet-8-0&amp;amp;tabs=linux&lt;/a&gt;&lt;br&gt;
[7] &lt;a href="https://docker-curriculum.com" rel="noopener noreferrer"&gt;https://docker-curriculum.com&lt;/a&gt;&lt;br&gt;
[8] &lt;a href="https://www.geeksforgeeks.org/docker-tutorial/" rel="noopener noreferrer"&gt;https://www.geeksforgeeks.org/docker-tutorial/&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>My First Hacktoberfest...</title>
      <dc:creator>AryanSharma9917</dc:creator>
      <pubDate>Thu, 05 Nov 2020 09:46:00 +0000</pubDate>
      <link>https://dev.to/aryansharma9917/my-first-hacktoberfest-2om7</link>
      <guid>https://dev.to/aryansharma9917/my-first-hacktoberfest-2om7</guid>
      <description>&lt;p&gt;✨My First Hacktoberfest... ✨ &lt;/p&gt;

&lt;h3&gt;
  
  
  Introduction
&lt;/h3&gt;

&lt;p&gt;This was my first Hacktoberfest and I thoroughly enjoyed it. I exchanged 4 pull requests as per the guidelines and learned how to use GitHub. &lt;/p&gt;

&lt;h3&gt;
  
  
  Background
&lt;/h3&gt;

&lt;p&gt;The idea and inspiration were given by my elder sister who is a software engineer and has been associated with the fest for the past 3 years. I have been taught by her how to proceed with the fest and what all has to be done.&lt;/p&gt;

&lt;h3&gt;
  
  
  Progress
&lt;/h3&gt;

&lt;p&gt;I am a beginner. I like the way GitHub has helped me to get my self introduced to various open-source code over the platform I wish to explore it more and would continue contributing to it.&lt;/p&gt;

&lt;h3&gt;
  
  
  Contributions
&lt;/h3&gt;

&lt;p&gt;I contributed in a project on CALCULATOR. I initially added percentage, average, power, remainder and sent pull requests for the same. Therefore, I completed 4 pull request successfully.&lt;/p&gt;

&lt;h3&gt;
  
  
  Reflections
&lt;/h3&gt;

&lt;p&gt;Overall, I enjoyed the Hacktoberfest 2020, it was really nice working with the open-source for the first time. I will surely participate again in the coming years. I have learned how to use GitHub successfully and also how to work with open-source. Yes, I have made a few connections while working with the project CALCULATOR @riya-17 &lt;a class="mentioned-user" href="https://dev.to/rakshitkumar04"&gt;@rakshitkumar04&lt;/a&gt; . I am looking forward to building some new projects and contribute to GitHub and take help from GitHub for my upcoming project completion.&lt;/p&gt;

</description>
      <category>hacktoberfest</category>
    </item>
  </channel>
</rss>
