<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/building-an-interactive-shell-in-golang-min0gqcyg" -->

---
title: Building an interactive shell in Golang | daily.dev
description: Learn how to build an interactive shell in Go using the abiosoft/ishell package. This tutorial covers configuration options, launching the shell, handling...
canonical: https://daily.dev/posts/building-an-interactive-shell-in-golang-min0gqcyg
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Building an interactive shell in Golang | daily.dev
og:description: Learn how to build an interactive shell in Go using the abiosoft/ishell package. This tutorial covers configuration options, launching the shell, handling...
og:url: https://daily.dev/posts/building-an-interactive-shell-in-golang-min0gqcyg
og:image: https://api.daily.dev/og/posts/miN0GqCYg.png
og:image:alt: Building an interactive shell in Golang
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Building an interactive shell in Golang

**[Lobsters](https://daily.dev/sources/lobsters)** · 8 min read · 21 upvotes · 1 comments

## Summary

Learn how to build an interactive shell in Go using the abiosoft/ishell package. This tutorial covers configuration options, launching the shell, handling predefined commands or free-form input, interrupting execution, and adding shell history and tab completion. Find out the best option for building interactive shells in Go.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.dolthub.com/blog/2023-03-29-interactive-shell-golang/>

## Community discussion

Top comments from developers on daily.dev.

**@hantian\_pang** · 0 upvotes

> gum is really cool

---

Tags: [#golang](https://daily.dev/tags/golang), [#cli](https://daily.dev/tags/cli)

[View this post on daily.dev](https://daily.dev/posts/building-an-interactive-shell-in-golang-min0gqcyg)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Building an interactive shell in Golang","url":"https://daily.dev/posts/building-an-interactive-shell-in-golang-min0gqcyg","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/building-an-interactive-shell-in-golang-min0gqcyg"},"datePublished":"2024-03-30T05:04:03.000Z","dateModified":"2024-05-09T08:39:06.345Z","description":"Learn how to build an interactive shell in Go using the abiosoft/ishell package. This tutorial covers configuration options, launching the shell, handling...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/e070d52eee744dc8f414b4da151386fc?_a=AQAEufR","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/e070d52eee744dc8f414b4da151386fc?_a=AQAEufR","isAccessibleForFree":true,"articleSection":"Lobsters","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Lobsters","logo":"https://media.daily.dev/image/upload/s--tl8v_Fku--/f_auto,t_logo/v1698841318/logos/lobste.jpg","url":"https://daily.dev/sources/lobsters"},"commentCount":1,"discussionUrl":"https://daily.dev/posts/building-an-interactive-shell-in-golang-min0gqcyg","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":21},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":1}],"keywords":"golang,cli","timeRequired":"PT8M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Lobsters","item":"https://daily.dev/sources/lobsters"},{"@type":"ListItem","position":3,"name":"Building an interactive shell in Golang"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/building-an-interactive-shell-in-golang-min0gqcyg","comment":[{"@type":"Comment","text":"gum is really cool","datePublished":"2024-04-01T12:25:40.483Z","url":"https://daily.dev/posts/miN0GqCYg#c-rCNNdmobW","author":{"@type":"Person","name":"hantian pang","url":"https://daily.dev/hantian_pang","image":"https://avatars.githubusercontent.com/u/6350479?v=4"}}]}
```

