@kernelius/forge-cli 0.2.1 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -5,6 +5,36 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [0.3.0] - 2026-02-01
9
+
10
+ ### Added
11
+ - **Templates Command**: New `forge templates` command for repository template discovery
12
+ - `forge templates list` - Show all available templates grouped by organization type
13
+ - `forge templates list --org-type <type>` - Filter templates by category (healthcare, research, company, education, nonprofit)
14
+ - `forge templates view <id>` - View detailed template information including metadata, naming patterns, and usage examples
15
+ - **Template Validation**: Added client-side validation to `forge repos create --template`
16
+ - Validates template ID exists before making API call
17
+ - Shows helpful error messages with guidance when invalid template specified
18
+ - Displays template name after successful repository creation
19
+
20
+ ### Changed
21
+ - Enhanced `forge repos create` command with `--template` option for type-specific repositories
22
+ - Updated documentation with template discovery workflow and comprehensive examples
23
+
24
+ ### Examples
25
+ ```bash
26
+ # Discover available templates
27
+ forge templates list
28
+ forge templates list --org-type healthcare
29
+ forge templates view patient-record
30
+
31
+ # Create repository with template
32
+ forge repos create --name patient-john-doe \
33
+ --template patient-record \
34
+ --description "Medical records for patient" \
35
+ --visibility private
36
+ ```
37
+
8
38
  ## [0.2.1] - 2026-02-01
9
39
 
10
40
  ### Added
package/README.md CHANGED
@@ -45,6 +45,19 @@ forge auth config
45
45
  forge auth logout
46
46
  ```
47
47
 
48
+ ### Templates
49
+
50
+ ```bash
51
+ # List all available templates
52
+ forge templates list
53
+
54
+ # List templates for a specific organization type
55
+ forge templates list --org-type healthcare
56
+
57
+ # View detailed information about a template
58
+ forge templates view patient-record
59
+ ```
60
+
48
61
  ### Repositories
49
62
 
50
63
  ```bash
@@ -59,8 +72,44 @@ forge repos clone @owner/repo [destination]
59
72
 
60
73
  # Create a new repository
61
74
  forge repos create --name my-repo --visibility private
75
+
76
+ # Create a repository from a template
77
+ forge repos create --name my-patient-repo --template patient-record --visibility private
62
78
  ```
63
79
 
80
+ #### Repository Templates
81
+
82
+ When creating repositories, you can use type-specific templates that pre-configure metadata and initialize with relevant files.
83
+
84
+ **Discover templates:**
85
+ ```bash
86
+ # See all available templates
87
+ forge templates list
88
+
89
+ # Filter by organization type
90
+ forge templates list --org-type healthcare
91
+
92
+ # View template details
93
+ forge templates view patient-record
94
+ ```
95
+
96
+ **Create with template:**
97
+ ```bash
98
+ forge repos create --name patient-john-doe \
99
+ --template patient-record \
100
+ --description "Medical records for patient John Doe" \
101
+ --visibility private
102
+ ```
103
+
104
+ **Available template categories:**
105
+ - **Healthcare** - `patient-record`, `fhir-resource`, `medical-protocol`, `clinical-study`
106
+ - **Research** - `research-dataset`, `research-experiment`, `research-publication`, `research-analysis`
107
+ - **Company** - `code-repository`
108
+ - **Education** - `course-materials`
109
+ - **Nonprofit** - `campaign`
110
+
111
+ Use `forge templates list` to see all templates with descriptions.
112
+
64
113
  ### Issues
65
114
 
66
115
  ```bash