Skip to content

Init

Init Command - Onboarding Automation.

This module handles the jnkn init command, which bootstraps a project with a configuration file tailored to the detected technology stack.

Security Note

This command includes a specific "Privacy Manifesto" display to ensure users understand exactly what data remains local vs what is sent.

Classes

Functions

create_gitignore(jnkn_dir)

Ensure the .jnkn/ directory is ignored by git.

detect_stack(root_dir)

Heuristically detect technologies used in the directory.

init(force, demo, telemetry, pack_name, list_packs)

Initialize Jnkan in the current directory.

 Framework Packs: Packs are pre-tuned configurations for specific technology stacks. They reduce false positives and improve accuracy out-of-the-box.

 Examples: jnkn init # Auto-detect and configure jnkn init --pack django-aws # Use Django+AWS pack jnkn init --demo # Try with sample project jnkn init --list-packs # See available packs