sykli-innovation-pipeline
v1.0.6
Published
A CLI tool for scaffolding projects from GitHub templates
Maintainers
Readme
Sykli Innovation Pipeline CLI
A CLI tool for scaffolding projects from GitHub templates stored in the private repository [email protected]:Neogrant-Oy/innovation-pipeline.git.
Installation
npm install -g sykli-innovation-pipelineOr use with npx without installing globally:
npx sykli-innovation-pipeline@latest add nestjsSetup
Authentication for Private Repository
Since this tool accesses a private GitHub repository, you need to set up authentication:
Create a GitHub Personal Access Token:
- Go to GitHub Settings → Developer settings → Personal access tokens → Tokens (classic)
- Click "Generate new token (classic)"
- Select scopes:
repo(Full control of private repositories) - Copy the generated token
Set the environment variable:
export GITHUB_TOKEN=your_personal_access_token_hereOr for Windows:
set GITHUB_TOKEN=your_personal_access_token_hereFor permanent setup, add it to your shell profile (
.bashrc,.zshrc, etc.) or environment variables.
Usage
Add a Template to Current Directory
# Add NestJS template to current directory
npx sykli-innovation-pipeline@latest add nestjs
# Add with options
npx sykli-innovation-pipeline@latest add nestjs --force --verbose
# Add to specific directory
npx sykli-innovation-pipeline@latest add nestjs --directory ./my-projectList Available Templates
npx sykli-innovation-pipeline@latest listInteractive Project Creation
npx sykli-innovation-pipeline@latest createGet Template Information
npx sykli-innovation-pipeline@latest info nestjsAvailable Templates
The CLI tool fetches templates from the ci/ directory of the private repository:
- nestjs - A progressive Node.js framework for building scalable server-side applications
- react - A JavaScript library for building user interfaces
- vue - The progressive JavaScript framework
Command Options
Global Options
--help, -h- Show help information--version, -V- Show version number
Add Command Options
--force, -f- Overwrite existing files without confirmation--skip-install, -s- Skip automatic dependency installation--verbose, -v- Enable verbose logging--directory <dir>, -d- Target directory (default: current directory)
Examples
# Basic usage
npx sykli-innovation-pipeline@latest add nestjs
# Create new project in specific directory
npx sykli-innovation-pipeline@latest add nestjs --directory ./my-nestjs-app
# Skip dependency installation
npx sykli-innovation-pipeline@latest add react --skip-install
# Force overwrite existing files
npx sykli-innovation-pipeline@latest add vue --force
# Interactive creation
npx sykli-innovation-pipeline@latest createProject Structure
After installation, your project will include:
- All files from the selected template in
ci/<template-name>/ - Updated
package.jsonwith project-specific information - Template variables replaced with actual values
.sykli-meta.jsonwith project metadata
Template Variables
Templates can include variables that will be replaced during installation:
{{PROJECT_NAME}}- Name of the target directory{{TEMPLATE_NAME}}- Name of the template{{CREATED_DATE}}- Date of project creation
Troubleshooting
Authentication Issues
If you get authentication errors:
- Verify your GitHub token is set:
echo $GITHUB_TOKEN - Ensure the token has
reposcope for private repositories - Check that your GitHub account has access to
Neogrant-Oy/innovation-pipeline
Template Not Found
If a template is not found:
- Run
npx sykli-innovation-pipeline@latest listto see available templates - Verify the template exists in the
ci/directory of the repository - Check your internet connection and GitHub access
Network Issues
If you encounter network errors:
- Check your internet connection
- Verify GitHub is accessible
- Try again after a few moments
Development
Building from Source
git clone <this-repository>
cd sykli-innovation-pipeline
yarn install
yarn buildRunning in Development
yarn dev add nestjsLicense
MIT
