gignore
A simple and lightweight CLI for generating .gitignore files from gitignore.io templates.
Instead of manually searching for .gitignore templates, just tell gignore which technologies or tools your project uses.
Installation
Install globally with pipx:
pipx install gignore-cli
You can also install it with pip:
pip install gignore-cli
Usage
Generate a .gitignore for a Python project:
gignore python
You can combine multiple templates by separating them with commas:
gignore python,node
For example, for a project using Python, Node.js and VS Code:
gignore python,node,vscode
The generated .gitignore is created in the current working directory.
Help
Display the available options and examples:
gignore --help
or:
gignore -h
Warning
If a .gitignore already exists in the current directory, gignore will overwrite it.
Make sure you do not have important custom rules in the existing file before running the command.
Examples
Python project
mkdir my-project
cd my-project
gignore python
Full-stack project
gignore python,node,vscode
Multiple environments
gignore python,windows,macos,linux
How it works
gignore sends the requested templates to gitignore.io and uses the returned content to create the .gitignore file.
For example:
gignore python,node
requests the python and node templates and combines their rules into the generated .gitignore.
Features
- Simple command-line interface
- Supports multiple templates
- Generates
.gitignorein the current directory - Built-in
--help - Clear terminal output using Rich
- Uses gitignore.io templates
- Lightweight and easy to use
Development
Clone the repository:
git clone https://github.com/ze-fernando/gignore.git
cd gignore
Install the development dependencies:
pdm install
Run the CLI locally:
pdm run python -m gignore.main python,node
Build the package:
pdm build
The generated packages will be available in the dist/ directory.
License
This project is licensed under the MIT License.
Metadata
Release files for gignore-cli 1.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| gignore_cli-1.1.3.tar.gz | 3.8 kB | With provenance | Details for gignore_cli-1.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| gignore_cli-1.1.3-py3-none-any.whl | Python 3 | none | any | Details for gignore_cli-1.1.3-py3-none-any.whl |
Total release size: 8.9 kB
Release files / gignore_cli-1.1.3.tar.gz
| Download URL | gignore_cli-1.1.3.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0358bb6feccf642df368903d26bad6b28bbaa80625f6cf68d8337d16bb76065e
|
|
BLAKE2b-256 checksum How to use checksums |
2f999a65707679b13eb6fb1e8d7c8576c8234508d98d3f8ce62fc1945644049b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 23, 2026.
Transparency logRelease files / gignore_cli-1.1.3-py3-none-any.whl
| Download URL | gignore_cli-1.1.3-py3-none-any.whl |
|---|---|
| Size | 5.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5a6bb3180061cb19f0310a376066644408e314c8d5fa78e4ba168f541f087f71
|
|
BLAKE2b-256 checksum How to use checksums |
1a41439d58f00ba811c23ff367772e97e05877cdb1c4d3d6551625077465cd00
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 23, 2026.
Transparency logSecurity for gignore-cli 1.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for gignore_cli-1.1.3.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 23, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.