Skip to main content
.charmignore controls which files are excluded when charm push bundles your project.

Why It Matters

Exclude files that are large, private, generated, or irrelevant to runtime execution.

Example

Best Practices

  • Never publish secrets.
  • Exclude virtual environments.
  • Exclude local datasets unless the agent truly needs them.
  • Exclude build caches.
  • Keep bundles small and reproducible.

Before Publishing

Use:
to inspect what will be uploaded.