Ignore Files
The .pilumignore file lets you exclude directories and services from Pilum’s automatic discovery. This is useful for skipping examples, tests, or archived services.
Basic Usage
Create a .pilumignore file in your project root:
examplestest-*archived/When Pilum runs, it will skip any directories or pilum.yaml files matching these patterns.
Pattern Syntax
Directory Names
Match any directory with that name, anywhere in your project:
# Ignore any directory named "examples"examples
# Ignore any directory named "fixtures"fixturesThis matches:
examples/services/examples/deep/nested/examples/
Rooted Paths
End a pattern with / to match only at the project root:
# Only ignore the root examples/ directoryexamples/
# Only ignore archived/ at rootarchived/This matches:
examples/(at root)
This does NOT match:
services/examples/
Glob Patterns
Use * for wildcard matching:
# Ignore directories starting with "test-"test-*
# Ignore directories ending with "-old"*-old
# Ignore directories starting with underscore_*Comments
Lines starting with # are comments:
# Development fixturesfixtures
# Old services pending deletionarchived/
# Template filestemplatesBlank Lines
Blank lines are ignored for readability:
# Test directoriestest-*fixtures
# Archived servicesarchived/*-deprecatedExample .pilumignore
# Development and testingexamplesfixturestest-*testdata
# Build artifacts (shouldn't have pilum.yaml, but just in case)distnode_modulesvendor
# Archived/deprecated servicesarchived/*-deprecated*-old
# Template services (for pilum init)templates/
# DocumentationdocsDebugging
Use --debug to see which paths are being ignored:
$ pilum list --debugDEBUG: Loaded 5 ignore patterns from .pilumignoreDEBUG: Ignoring directory: examplesDEBUG: Ignoring directory: archivedDEBUG: Ignoring service: test-service/pilum.yamlCommon Patterns
Monorepo with Examples
my-project/├── .pilumignore # examples├── services/│ ├── api/│ │ └── pilum.yaml # ✓ discovered│ └── worker/│ └── pilum.yaml # ✓ discovered└── examples/ └── demo-service/ └── pilum.yaml # ✗ ignoredArchived Services
archived/*-deprecatedmy-project/├── services/│ ├── payments/│ │ └── pilum.yaml # ✓ discovered│ └── payments-deprecated/│ └── pilum.yaml # ✗ ignored└── archived/ └── old-api/ └── pilum.yaml # ✗ ignoredTest Fixtures
test-**_testfixturesNotes
- Patterns are matched against the path relative to project root
- Both directories and
pilum.yamlfiles are checked against patterns - Ignored directories are skipped entirely (not traversed)
- The file must be named exactly
.pilumignoreat the project root
Next Steps
- Multi-Service Monorepo — Organizing multiple services
- Service Configuration — Configure your services