Skip to content

feat: add template management commands for project templates#5444

Merged
lorenzejay merged 6 commits intomainfrom
worktree-lorenze+feat+install-templates
Apr 16, 2026
Merged

feat: add template management commands for project templates#5444
lorenzejay merged 6 commits intomainfrom
worktree-lorenze+feat+install-templates

Conversation

@lorenzejay
Copy link
Copy Markdown
Collaborator

@lorenzejay lorenzejay commented Apr 13, 2026

  • Introduced command group to browse and install project templates.
  • Added command to display available templates.
  • Implemented command to install a selected template into the current directory.
  • Created class to handle template-related operations, including fetching templates from GitHub and managing installations.
  • Enhanced telemetry to track template installations.
Screenshot 2026-04-13 at 2 38 15 PM

Note

Medium Risk
Writes files to disk and downloads/extracts remote zipballs from GitHub; failures or edge cases could impact local directories, though extraction includes basic path-safety checks and tests.

Overview
Adds a new crewai template command group with list (interactive picker) and add <name> [-o output-dir] to download and scaffold project templates from the crewAIInc GitHub org.

Introduces TemplateCommand to fetch template repos (filtering template_ prefix), download repo zipballs, safely extract them into a new directory (prompting on conflicts), and records a new telemetry span (Template Installed). Includes a new unit/integration-style test suite covering CLI wiring, GitHub API interactions, zip extraction, and error paths.

Reviewed by Cursor Bugbot for commit 3b0b4fe. Bugbot is set up for automated code reviews on this repo. Configure here.

- Introduced  command group to browse and install project templates.
- Added  command to display available templates.
- Implemented  command to install a selected template into the current directory.
- Created  class to handle template-related operations, including fetching templates from GitHub and managing installations.
- Enhanced telemetry to track template installations.
Comment thread lib/crewai/src/crewai/cli/remote_template/main.py Fixed
Comment thread lib/crewai/src/crewai/cli/remote_template/main.py Fixed
Comment thread lib/crewai/src/crewai/cli/remote_template/main.py Outdated
Comment thread lib/crewai/src/crewai/cli/remote_template/main.py Outdated
Comment thread lib/crewai/src/crewai/cli/remote_template/main.py Fixed
Comment thread lib/crewai/src/crewai/cli/remote_template/main.py Outdated
Copy link
Copy Markdown

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit d3541f7. Configure here.

Comment thread lib/crewai/src/crewai/cli/remote_template/main.py Outdated
@lorenzejay lorenzejay merged commit 105a977 into main Apr 16, 2026
55 of 88 checks passed
@lorenzejay lorenzejay deleted the worktree-lorenze+feat+install-templates branch April 16, 2026 17:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants