Getting Started
A guide to getting started with Migraine.
Welcome to Migraine! This guide will help you get up and running quickly with workflow automation.
Installation
Prerequisites
- Operating System: macOS (Apple Silicon/Intel) or Linux
- Required tools: Either curl or wget for shell script installation
Installation Methods
1. Homebrew (Recommended for macOS/Linux)
2. Shell Script
Using curl:
Using wget:
Verify Installation
Your First Workflow
1. Create a New Workflow
You have two options for creating workflows:
Option A: Project-level workflow (recommended for project automation)
This creates ./migraine.yaml
with a fully documented template for project-level workflows.
Option B: Individual workflow file
This creates ./workflows/my-workflow.yaml
with a fully documented template.
2. Examine the Generated File
The command creates ./migraine.yaml
with a template like this:
3. Validate the Workflow
4. Run the Project Workflow
Expected output:
Working with Variables
Security Notice
⚠️ IMPORTANT: The vault currently stores variables in an unencrypted SQLite database. While variables are stored locally, they are not encrypted at rest. We are actively working on adding encryption support in an upcoming release. For now, we recommend avoiding storing highly sensitive information like production API keys in the vault until encryption is implemented.
1. Store a Variable in the Vault
2. List Variables
3. Use Variables in Workflows
Create a project workflow that uses variables (migraine.yaml):
4. Run with Variables
Expected output:
Project-Level Workflows
Create a migraine.yaml
file in your project root to define project-specific workflows:
Run the project workflow:
Using the New Pre-checks Command
Migraine includes a new command that allows you to run only pre-checks:
1. Run Pre-checks from Current Directory
This runs only the pre-checks section of the migraine.yaml file in the current directory.
2. Run Pre-checks for a Specific Workflow
This command will:
- Look up the stored working directory for "my-workflow"
- Change to that directory
- Run the pre-checks from that location
- Restore your original directory when finished
Common Use Cases
Development Environment Setup
CI/CD Pipeline
Deployment
Advanced Quick Example
Multi-Step Deployment Workflow
Run the deployment:
Or run only pre-checks to validate connectivity:
Next Steps
Now that you've created your first workflow, explore these advanced topics:
- Workflows: Learn about advanced workflow features and best practices
- Vault: Understand variable management and security
- CLI Reference: Complete command reference with all options
- Alternatives Comparison: Why Migraine vs other tools
The documentation provides comprehensive guides for each of these areas to help you get the most out of Migraine!