build: add make install target for flynn CLI

This commit is contained in:
William Valentin
2026-02-16 10:56:45 -08:00
parent 3863f59b45
commit 91282a9c47
2 changed files with 11 additions and 6 deletions
+8 -2
View File
@@ -1,7 +1,7 @@
# Flynn Makefile # Flynn Makefile
# Self-hosted personal AI agent # Self-hosted personal AI agent
.PHONY: build dev start stop restart status logs tui tui-fs tui-dev test test-run lint typecheck help daemon-start daemon-stop daemon-restart daemon-status daemon-logs enable disable llama-start llama-stop llama-restart llama-status llama-logs llama-enable llama-disable .PHONY: build dev start stop restart status logs tui tui-fs tui-dev test test-run lint typecheck check help deps install daemon-start daemon-stop daemon-restart daemon-status daemon-logs enable disable llama-start llama-stop llama-restart llama-status llama-logs llama-enable llama-disable
# Default target # Default target
.DEFAULT_GOAL := help .DEFAULT_GOAL := help
@@ -103,9 +103,15 @@ typecheck: ## Run TypeScript compiler (no emit)
check: lint typecheck test-run ## Run all checks (lint, typecheck, test) check: lint typecheck test-run ## Run all checks (lint, typecheck, test)
# Dependencies # Dependencies
install: ## Install dependencies deps: ## Install dependencies
pnpm install pnpm install
install: ## Install flynn CLI as a shell command (build + global link)
pnpm install
pnpm build
pnpm link --global
@echo "flynn installed. If the command is not found, add PNPM_HOME to your PATH."
# Utilities # Utilities
help: ## Show this help message help: ## Show this help message
@echo "Flynn - Self-hosted personal AI agent" @echo "Flynn - Self-hosted personal AI agent"
+3 -4
View File
@@ -38,15 +38,14 @@ Self-hosted personal AI assistant with Telegram and Terminal interfaces.
## Quick Start ## Quick Start
```bash ```bash
# Install dependencies # Install flynn CLI command (build + global link)
pnpm install make install
# Copy and configure # Copy and configure
cp config/default.yaml ~/.config/flynn/config.yaml cp config/default.yaml ~/.config/flynn/config.yaml
# Edit config with your API keys and Telegram bot token # Edit config with your API keys and Telegram bot token
# Build and run # Run
pnpm build
flynn start flynn start
# Or run without building # Or run without building