VERSION=$(curl --silent "https://api.github.com/repos/argoproj-labs/argocd-autopilot/releases/latest" | grep '"tag_name"' | sed -E 's/."([^"]+)"./\1/')
curl -L --output - https://github.com/argoproj-labs/argocd-autopilot/releases/download/$VERSION/argocd-autopilot-linux-amd64.tar.gz | tar zx
mv ./argocd-autopilot-* /usr/local/bin/argocd-autopilot
argocd-autopilot version
kubectl port-forward -n argocd svc/argocd-server 8080:80
export GIT_TOKEN=<YOUR_TOKEN>
export GIT_REPO=<REPO_URL>
argocd-autopilot repo bootstrap
argocd-autopilot project create simpleapp
argocd-autopilot app create prod --app github.com/jhoelzel/simpleapp/kube-manifests/kustomize/overlays/prod -p simpleapp
argocd-autopilot app create dev --app github.com/jhoelzel/simpleapp/kube-manifests/kustomize/overlays/dev -p simpleapp