
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
A modern TypeScript CLI framework with dependency injection and decorator-based command definition. Combines Inversify (IoC) and Commander.js for building modular, type-safe CLI applications.
Kuri is a modern, IoC-style CLI framework written in TypeScript that empowers developers to build elegant, scalable, and maintainable command-line applications.
# Using npm
npm install kuri-cli
# Using yarn
yarn add kuri-cli
# Using pnpm
pnpm add kuri-cli
import 'reflect-metadata';
import { Kuri, Command, Option, Action } from 'kuri-cli';
@Command({
name: 'greet',
description: 'Greet a person'
})
class GreetCommand {
@Option('-n, --name <name>', 'Name to greet', 'World')
private name: string;
@Action()
public execute(): void {
console.log(`Hello, ${this.name}!`);
}
}
async function main() {
const kuri = new Kuri({
name: 'my-cli',
version: '1.0.0',
commands: [GreetCommand]
});
await kuri.parseAsync(process.argv);
}
main().catch(console.error);
Run your CLI:
$ ts-node index.ts greet --name Developer
Hello, Developer!
Use the @Command decorator to define CLI commands:
@Command({
name: 'serve',
description: 'Start the server',
aliases: ['start', 's']
})
class ServeCommand {
// ...
}
Use @Option and @RequiredOption decorators for command options:
@Option('-p, --port <port>', 'Port number', '3000')
private port: string;
@RequiredOption('-c, --config <path>', 'Config file path')
private configPath: string;
Use the @Argument decorator for positional arguments:
@Argument('file', 'File to process', 'default.txt')
private file: string;
Mark the method to execute when the command runs using @Action:
@Action()
public execute(): void {
// Command implementation
}
Kuri provides built-in dependency injection through Inversify:
@Injectable()
class ConfigService {
public getConfig(): object {
return { /* config */ };
}
}
@Command({ name: 'start' })
class StartCommand {
constructor(@Inject(ConfigService) private config: ConfigService) {}
@Action()
execute() {
const config = this.config.getConfig();
// Use config...
}
}
// Register service in container
const kuri = new Kuri({
name: 'my-cli',
version: '1.0.0',
commands: [StartCommand],
});
Check the examples directory for more examples
FAQs
A modern TypeScript CLI framework with dependency injection and decorator-based command definition. Combines Inversify (IoC) and Commander.js for building modular, type-safe CLI applications.
We found that kuri-cli demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.