Getting Started
This guide will help you get started with nyl-rs.
Installation
From Source
cd nyl-rs
cargo build --release
The binary will be available at target/release/nyl.
Install Locally
cargo install --path .
This installs nyl to ~/.cargo/bin/nyl.
Quick Start
1. Create a New Project
nyl new project my-app
cd my-app
This creates:
nyl-project.yaml- Project configurationcomponents/- Directory for components
2. Add a Component
nyl new component v1.example.io MyApp
This creates a new component at components/v1.example.io/MyApp/ with:
Chart.yaml- Helm chart metadatavalues.yaml- Default valuesvalues.schema.json- JSON schema for validationtemplates/deployment.yaml- Kubernetes deployment template
3. Validate Your Project
nyl validate
Output:
✓ Found project config: /path/to/my-app/nyl-project.yaml
✓ Components directory exists: /path/to/my-app/components
✓ Search path exists: /path/to/my-app
✓ Validation passed
4. Strict Validation
For CI/CD pipelines, use strict mode to treat warnings as errors:
nyl validate --strict
Project Structure
my-app/
├── nyl-project.yaml # Project configuration
├── components/ # Component definitions
│ └── v1.example.io/
│ └── MyApp/
│ ├── Chart.yaml
│ ├── values.yaml
│ ├── values.schema.json
│ └── templates/
│ └── deployment.yaml
└── lib/ # Optional: shared libraries (Phase 2+)
Next Steps
- Read about Configuration
- Learn about the
newcommand - Learn about the
validatecommand - Check the Migration Guide if you’re coming from Python nyl