# User Guide [← Installation Guide](Installation-Guide.md) | [Home](Home.md) | [Script Development →](Script-Development.md) --- ## Table of Contents - [Quick Start Tutorial](#quick-start-tutorial) - [Core Commands](#core-commands) - [Script Management](#script-management) - [Documentation Features](#documentation-features) - [Working with Categories](#working-with-categories) - [Best Practices](#best-practices) - [Advanced Usage](#advanced-usage) - [Next Steps](#next-steps) ## Quick Start Tutorial Let's create and use your first DotRun script: ### 1. Create a Simple Script ```bash # Create a new script called 'hello' dr set hello # This opens your editor with a template. Add this content: #!/usr/bin/env bash ### DOC # Hello World Script # # A simple demonstration script for DotRun # # Usage: dr hello [name] # # Arguments: # name - Optional name to greet (default: World) # # Examples: # dr hello # Outputs: Hello, World! # dr hello Alice # Outputs: Hello, Alice! ### DOC name="${1:-World}" echo "Hello, $name!" ``` ### 2. Run Your Script ```bash # Run with default dr hello # Output: Hello, World! # Run with argument dr hello DotRun # Output: Hello, DotRun! ``` ### 3. View Documentation ```bash # View the inline documentation dr help hello # If you have glow installed, it renders as formatted markdown ``` ## Core Commands ### Script Execution ```bash dr