Skip to content

Instantly share code, notes, and snippets.

@twelvemo
Last active June 11, 2025 18:09
Show Gist options
  • Select an option

  • Save twelvemo/1788e26f3b04a3914e6eb28b75402e67 to your computer and use it in GitHub Desktop.

Select an option

Save twelvemo/1788e26f3b04a3914e6eb28b75402e67 to your computer and use it in GitHub Desktop.
Install grow
#! /bin/sh
set -e
# Print our lovely banner image
echo "                                   
                                   
                                   
                                   
                                   
                                   
                                   
"
echo "❊ Installing the Grow CLI ❊"
echo ""
if [[ -n $1 ]]
then
GROW_VERSION=$1
else
GROW_VERSION="latest"
fi
fresh_bun_install=false
echo "→ Checking for bun..."
if ! bun --version &> /dev/null
then
echo "→ Installing bun..."
curl -fsSL https://bun.sh/install | bash
# add bun to PATH in current shell
export PATH=$PATH:$HOME/.bun/bin
fresh_bun_install=true
fi
echo "→ Installing grow..."
bun add --global @garden-io/grow-core@${GROW_VERSION}
echo ""
echo "🌺🌻 Grow has been successfully installed 🌷💐"
echo ""
if ${fresh_bun_install}
then
echo ""
echo "You can either restart your terminal to use grow"
echo "or run this command to add bun to your current shell's PATH:"
echo "export PATH=\$PATH:\$HOME/.bun/bin"
echo ""
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment