nuon apps init command helps you quickly scaffold configuration files for your Nuon application. It generates the necessary TOML configuration files with proper structure and defaults, making it easy to get started with Nuon.
Basic Usage
To initialize a new app configuration in the default directory (./app-config):
inputs.toml- Define customer-facing configuration optionssandbox.toml- Configure the infrastructure sandboxstack.toml- Define the infrastructure stack (EKS/ECS/CloudFormation)runner.toml- Configure the deployment runnersecrets.toml- Manage secrets configurationbreak_glass.toml- Configure emergency access policiespolicies.toml- Define organizational policiescomponents/- Directory for component configurationsactions/- Directory for action workflows
Interactive Mode
For a guided setup experience, use interactive mode:- Template Selection - Choose a prebuilt template or start from scratch
- Component Configuration - Select which sample components to include
- Generator Options - Configure comment and default value preferences
Using Prebuilt Templates
Nuon provides production-ready templates for common deployment scenarios. Use the--prebuild-template flag to bootstrap your configuration quickly:
AWS EKS Template
Configuration Options
Path Configuration
Specify a custom output directory:Include Comments
Add inline comments explaining each configuration field:Include Default Values
Explicitly set all fields to their default values:Skip Non-Required Fields
Generate a minimal configuration with only required fields:Overwrite Existing Files
Force overwrite of existing configuration files:Be careful with
--overwrite as it will replace existing files without prompting. Always commit your changes to version control before using this flag.Initializing Individual Configurations
Instead of generating the entire configuration structure, you can initialize specific configuration files using subcommands.Sandbox Configuration
Generate only the sandbox configuration:--terraform-version- Terraform version to use--public-repo- Public GitHub repository (e.g.,owner/repo)--connected-repo- Connected private repository--drift-schedule- Cron expression for drift detection--var- Terraform variable (can be specified multiple times)--env-var- Environment variable (can be specified multiple times)
Stack Configuration
Generate the infrastructure stack configuration:--name- Name of the CloudFormation stack--description- Description of the stack
Runner Configuration
Generate the runner configuration:--runner-type- Type of runner:kubernetes,docker, orvm
Component Configurations
Generate component configuration files for different component types.Terraform Module Component
Helm Chart Component
Kubernetes Manifest Component
Action Configuration
Generate an action workflow configuration:manual- Triggered manually from dashboard or CLIcron- Scheduled using cron expressionpost-provision- Runs after installation provisioningpost-deploy- Runs after component deployment
Common Workflows
Starting a New Application
-
Initialize with template:
-
Review and edit generated files:
-
Customize components:
-
Sync to Nuon:
Adding to an Existing Application
If you already have some configuration files and want to add more:Regenerating Configuration
If you need to regenerate with different options:Configuration File Structure
After runningnuon apps init, your directory will have this structure:
Next Steps
After initializing your app configuration:- Review Generated Files - Open each TOML file and customize values for your application
- Add Components - Use
nuon apps init componentto add application-specific components - Configure Actions - Set up automated workflows with
nuon apps init action - Sync to Nuon - Run
nuon apps syncto create or update your app in Nuon - Test Locally - Validate your configuration before deploying
The
nuon apps init command is a local operation and does not require authentication. It only generates configuration files on your local machine. Use nuon apps sync to push your configuration to the Nuon platform.