Pet is a command-line snippet manager written in Go that helps developers save, organize, and quickly retrieve frequently used commands.
The tool addresses the problem of remembering complex or rarely-used commands that are difficult to locate in shell history. Pet lets you store command snippets with tags, search them interactively, and execute them directly from the command line. Snippets support parameterization through variables marked with angle brackets, which can include default values or multiple preset options. The configuration is stored as a simple TOML file, making snippets easy to edit manually. The tool also offers synchronization capabilities through GitHub Gist or GitLab Snippets for backing up and sharing snippet collections.
Pet suits developers who work across multiple tools and platforms and want to reduce cognitive load by externalizing command knowledge rather than relying on memory or shell history. It works well for anyone managing a growing library of one-off commands, infrastructure operations, or multi-step procedures. The tool is distributed as a standalone binary compiled from Go, requiring no runtime dependencies and making installation straightforward across different operating systems.
The project maintains active engagement with its user base through documentation of real-world usage patterns and integration examples for popular shells. Development shows responsiveness to feature requests and bug reports, with particular attention to improving the snippet parameter system and sync functionality. The maintainers have invested in making the tool accessible through multiple installation channels and have provided clear migration paths for users adopting the tool.