Skip to content

Quick Start Guide

Get up and running with Angreal in just a few minutes.

  • Python 3.8 or higher
  • pip (Python package installer)
  • Git (for template installation)

Install the latest stable version:

Terminal window
pip install angreal

Install the latest development version:

Terminal window
pip install git+https://github.com/angreal/angreal.git

Setting up Angreal for local development is a different workflow — see the contributing docs.

After installation, verify that Angreal is working. It prints the installed version number:

Terminal window
angreal --version
# Expected output: angreal X.Y.Z

You can also check available commands:

Terminal window
angreal --help
  1. Create a new directory for your project:
Terminal window
mkdir my-project
cd my-project
  1. Create an .angreal directory — the directory Angreal looks in for your task files:
Terminal window
mkdir .angreal
  1. Create your first task file .angreal/task_hello.py. Task files must be named task_*.py:
import angreal
@angreal.command(name="hello", about="Say hello")
@angreal.argument(name="name", long="name", help="Name to greet", required=False)
def hello_command(name="World"):
"""A simple hello world task."""
print(f"Hello, {name}!")
  1. Run your task:
Terminal window
angreal hello
# Output: Hello, World!
angreal hello --name Alice
# Output: Hello, Alice!

Angreal can create projects from templates. Pass angreal init a single argument — a template URL or a local path — and answer the prompts. The name you provide becomes your new project’s directory:

Terminal window
# Initialize from a GitHub template
angreal init https://github.com/angreal/python.git
# Or use a local template
angreal init /path/to/template

Popular templates:

  • https://github.com/angreal/python.git - Python project template

If angreal is not found after installation, ensure your Python Scripts directory is in your PATH:

  • Linux/macOS: ~/.local/bin
  • Windows: %APPDATA%\Python\Scripts

If you get import errors, ensure you’re using Python 3.8+ and have installed all dependencies:

Terminal window
python --version # Should be 3.8 or higher
pip install --upgrade angreal