Skip to content

Conversation

kumaresra
Copy link

@kumaresra kumaresra commented Sep 26, 2025

Add offline template mode for spec-kit

Overview

Added the --offline-template option to the specify init command to support environments where direct GitHub access is restricted by corporate firewalls. This feature allows developers to initialize projects using local template files instead of downloading them from GitHub.

Key Changes

  • Added new --offline-template option to specify init command
  • Implemented template preservation logic for offline mode
  • Updated error handling and validation for local template files
  • Modified cleanup logic to preserve specified template files when using offline mode

Usage

# Initialize project using a local template file
specify init my-project --offline-template "/path/to/spec-kit-template-claude-sh-v0.0.54.zip"

# Can be combined with other options
specify init my-project --offline-template "/path/to/template.zip" --ai claude --no-git

Add offline_template to enable developers with corporate firewall to access spec kit
@kumaresra kumaresra requested a review from localden as a code owner September 26, 2025 13:02
@localden
Copy link
Collaborator

Thanks for the contribution! At this time, we will not be adding this functionality - because Specify is a "scaffolding CLI," an "offline template" is basically "Download and extract the ZIP."

@localden localden closed this Sep 29, 2025
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