Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
A command-line interface for the Codegen API that helps you transform your code with AI.
To install the latest release:
uv tool install codegen
codegen-staging
uv venv --python 3.13.0
source .venv/bin/activate
codegen-cli
package locallyuv pip install -e path/to/codegen-cli
codegen-cli
directory are now immediately reflected.uv tool install --upgrade codegen
codegen login
This will open your browser to get an authentication token. You can also pass a token directly with --token
.
codegen
from within your Git repository:codegen init
This creates the necessary folder structure and downloads documentation and examples. An error will be thrown if you are not in a git repository.
codegen create my-codemod-name --description "delete all my unused functions"
This will create a new codemod in the folder codegen-sh/codemod/my-codemod-name/run.py
When passed the --description
argument, a Codegen expert AI will generate this first draft. Therefore, it's helpful to provide as much info as possible.
Execute this codemod and view output with codegen run
:
codegen run my-codemod-name --apply-local
--apply-local
will apply the changes to your current local filesystem.
Note: use ENV=prod
if you want to point the CLI to prod instead of staging
When editing your codemod using Cursor, you can now @codegen-sh
in any chat or composer window to pull in relevant documentation and context about your codemods and the Codegen API.
This provides:
The AI will use this context to provide more accurate and helpful responses about working with Codegen.
login
- Authenticate with Codegenlogout
- Clear stored authenticationinit
- Initialize Codegen in your repositorycreate
- Create a new codemodrun
- Execute the active codemod
--web
- Open results in web browser--apply-local
- Apply changes locallyexpert
- Ask the Codegen AI expert questionsprofile
- View current user and codemod infoset-active
- Select which codemod to rundocs-search
- Search documentation and examplesAfter initialization, Codegen creates the following structure:
codegen-sh/
├── codemods/ # Your codemods live here
├── docs/ # API documentation
└── examples/ # Example codemods
FAQs
CLI tool for code refactoring
We found that codegen demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.