@misstika/template
v1.0.7
Published
CLI project template generator for MST Developer.
Maintainers
Readme
@misstika/template
A CLI project template generator for MST Developer.
Features
- 🔐 Secure Authentication: OAuth 2.0 with PKCE for Office 365
- 🏗️ Template Generation: Download and extract project templates
- 🔄 Token Management: Automatic token refresh and secure storage
- 📦 Easy Installation: Available via npx
Prerequisites
- Node.js 20.0.0 or higher (required for ESM support and modern packages)
Installation
npx @misstika/template <command>Usage
Login
Authenticate with Office 365:
npx @misstika/template loginList Templates
View available templates:
npx @misstika/template listGenerate Template
Download and extract a project template:
npx @misstika/template generate <template-name>Logout
Remove stored authentication tokens:
npx @misstika/template logoutHelp
Display help information:
npx @misstika/template helpToken Storage
Authentication tokens are stored securely in:
- Linux/macOS:
~/.misstika-template/tokens.json - Windows:
C:\Users\user\.misstika-template\tokens.json
Tokens are automatically refreshed when expired.
Security
- Tokens are stored with restricted file permissions (600)
- OAuth 2.0 with PKCE for secure authentication
- Automatic token refresh to minimize exposure
- Secure token deletion on logout
License
ISC
