Skip to content

Simplify Copier setup and auto-fill API key from shell#8

Merged
PeriLara merged 3 commits into
mainfrom
fix/copier-setup-ux
May 27, 2026
Merged

Simplify Copier setup and auto-fill API key from shell#8
PeriLara merged 3 commits into
mainfrom
fix/copier-setup-ux

Conversation

@PeriLara

Copy link
Copy Markdown
Collaborator

Summary

  • Remove Vespa port and API key prompts from initial copier copy (defaults live in .env / docker-compose).
  • Auto-fill MISTRAL_API_KEY in generated .env when exported in the shell (post-copy task + optional scripts/setup wrapper).
  • Improve Makefile (include .env, scoped reset-vespa) and document Copier usage in README.

Test plan

  • export MISTRAL_API_KEY=... && copier copy ./search-starter-app --trust /tmp/test → template v1.0.2+, task runs, .env contains key
  • copier copy ./search-starter-app --trust /tmp/test → only project name + collection name (no port/API prompts)
  • make integration-test in template repo passes
  • Tag v1.0.2 on merge if releasing template versions by tag

Made with Cursor

PeriLara and others added 3 commits May 27, 2026 11:37
Remove vespa port and mistral_api_key questions from copier.yml.
Use default ports in .env, load .env in Makefile, and scope reset-vespa
to the project compose volume. Tag v1.0.1 so local copier copy uses this
template instead of v1.0.0.

Co-authored-by: Cursor <cursoragent@cursor.com>
Run populate_api_key.py after copy when MISTRAL_API_KEY is exported.
Add scripts/setup wrapper. Keep API key and ports out of prompts.

Co-authored-by: Cursor <cursoragent@cursor.com>
Remove the project_name prompt. Use _copier_conf.dst_path.name in
templates so pyproject, README, and Vespa names match the output folder.

Co-authored-by: Cursor <cursoragent@cursor.com>
@PeriLara PeriLara requested a review from afoucret May 27, 2026 10:32
@PeriLara PeriLara merged commit 5397d06 into main May 27, 2026
2 checks passed
@PeriLara PeriLara deleted the fix/copier-setup-ux branch June 11, 2026 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants