init
command sets up Codegen in your repository, creating necessary configuration files and pulling documentation locally.
--repo-name
: The name of the repository (defaults to current git repo name)--organization-name
: The name of the organization (defaults to git organization)init
, Codegen creates a .codegen
directory in your repository with the following structure:
config.toml
and the codemods/
directory are tracked in Git. The rest
of the .codegen
directory is automatically added to your .gitignore
.codebase.reset()
without losing progress on your codemod implementation.codegen/codemods/
directory (this is the default when using codegen create
). This:
codebase.reset()
.
) specifies the path where the codemod should be created. This is required.
init
again to update your local documentation and configuration:
.codegen
directory while preserving your existing configuration.