summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorKeith Ballinger <[email protected]>2025-06-07 22:22:32 -0700
committerGitHub <[email protected]>2025-06-07 22:22:32 -0700
commit84678c6448df8fd382d5433a635472c934c85b14 (patch)
treebc3b2ae8d7187221b3444bfc10b8bbadaac1cce1 /Makefile
parent569c9774080a517fd32dc14545a4f5e71020b4e4 (diff)
Makefile for convenience (#833)
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile64
1 files changed, 64 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 00000000..ad561656
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,64 @@
+# Makefile for gemini-cli
+
+.PHONY: help install build build-sandbox build-all test lint format preflight clean start debug release run-npx create-alias
+
+help:
+ @echo "Makefile for gemini-cli"
+ @echo ""
+ @echo "Usage:"
+ @echo " make install - Install npm dependencies"
+ @echo " make build - Build the entire project"
+ @echo " make build-sandbox - Build the sandbox container"
+ @echo " make build-all - Build the project and the sandbox"
+ @echo " make test - Run the test suite"
+ @echo " make lint - Lint the code"
+ @echo " make format - Format the code"
+ @echo " make preflight - Run formatting, linting, and tests"
+ @echo " make clean - Remove generated files"
+ @echo " make start - Start the Gemini CLI"
+ @echo " make debug - Start the Gemini CLI in debug mode"
+ @echo " make release - Publish a new release"
+ @echo " make run-npx - Run the CLI using npx (for testing the published package)"
+ @echo " make create-alias - Create a 'gemini' alias for your shell"
+
+install:
+ npm install
+
+build:
+ npm run build
+
+build-sandbox:
+ npm run build:sandbox
+
+build-all:
+ npm run build:all
+
+test:
+ npm run test
+
+lint:
+ npm run lint
+
+format:
+ npm run format
+
+preflight:
+ npm run preflight
+
+clean:
+ npm run clean
+
+start:
+ npm run start
+
+debug:
+ npm run debug
+
+release:
+ npm run publish:release
+
+run-npx:
+ npx https://github.com/google-gemini/gemini-cli#early-access
+
+create-alias:
+ scripts/create_alias.sh