buttons init
Initialize a project-local .buttons directorySynopsis
Create a .buttons/ directory in the current working directory so buttons are scoped to this project instead of the global ~/.buttons/. Project-local buttons are discovered automatically: any buttons command run inside this directory (or a subdirectory) will use the local .buttons/ folder. Buttons created here won’t appear when you run commands from other projects. The global ~/.buttons/ is still used as a fallback when no project- local .buttons/ exists in the directory tree. A .gitignore is created inside .buttons/ to exclude run history (pressed/) from version control while keeping button specs, code files, and agent instructions committed. A reference guide is written to .buttons/AGENT.md so any coding agent that opens the folder can learn what Buttons is and how to use it. Interactively (on a TTY), init also offers to install a Buttons skill file for your coding agent (Cursor, Claude Code, Cline, GitHub Copilot, AGENTS.md, OpenClaw, or Hermes). None is installed without explicit selection. Examples:Options
Options inherited from parent commands
SEE ALSO
- buttons - Deterministic workflow engine for agents