Template Reference
Technical reference documentation for CyanPrint templates
Template Reference
Technical documentation for template structure, configuration, and SDK.
Project Structure
Project Structure
Template directory organization
cyan.yaml
Metadata configuration
Dockerfiles
Container configuration
Build Configuration
Docker buildx setup
SDK Reference
Complete API documentation for the CyanPrint SDK:
SDK Overview
SDK introduction and exports
IInquirer
Question asking API
Cyan Config
Configuration structure
Globbing
File pattern matching
Types
Type definitions
Quick Reference
Entry Point
import { StartTemplateWithLambda, GlobType } from '@atomicloud/cyan-sdk';StartTemplateWithLambda(async (i, d) => {return {processors: [{name: 'cyan/default',files: [{ root: 'templates', glob: '**/*', exclude: [], type: GlobType.Template }],config: { vars: {} }}]};});
Question Types
| Method | Returns | Purpose |
|---|---|---|
text() | string | Text input |
select() | string | Single selection |
confirm() | boolean | Yes/no |
checkbox() | string[] | Multi-select |
password() | string | Hidden input |
dateSelect() | string | Date selection |
File Processing
| Type | Behavior |
|---|---|
GlobType.Template | Process with variable substitution |
GlobType.Copy | Copy without processing |