Skip to content

Instantly share code, notes, and snippets.

@tarruda
Last active July 11, 2025 18:06
Show Gist options
  • Save tarruda/7452a1251a277434c613acd0a6b9e753 to your computer and use it in GitHub Desktop.
Save tarruda/7452a1251a277434c613acd0a6b9e753 to your computer and use it in GitHub Desktop.
Install planar
#!/bin/sh
set -e
# Check if uv is installed
if ! command -v uv &> /dev/null; then
echo "uv is not installed. Installing..."
curl -LsSf https://astral.sh/uv/install.sh | sh
echo "uv installed successfully."
. "$HOME/.local/bin/env"
fi
echo "Installing planar..."
# Install planar
uv tool install planar --extra-index-url=https://coplane.github.io/planar/simple/
if [ $? -eq 0 ]; then
echo "Planar installed successfully. Restart your shell and run \"planar scaffold myapp\" to get started!"
else
echo "Error: Failed to install planar."
exit 1
fi
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment