New
Apps 6,321Makers 6,300This week 13
Promote your app−30%
4views in
the last 30 days

gunshi-plugins

Opinionated plugins for the gunshi CLI framework

Built with Claude Code

by h3y6e · Unclaimed · from JPJapan · added Oct 29, 2026
no ratings0 comments

Opinionated plugins for gunshi.

Package Description
@h3y6e/gunshi-plugin-env Fills flags from environment variables
@h3y6e/gunshi-plugin-usage Exports a usage KDL spec

fidelity/usage checks how faithfully the usage spec from @h3y6e/gunshi-plugin-usage describes a gunshi CLI.

Usage

import env from "@h3y6e/gunshi-plugin-env";
import usage from "@h3y6e/gunshi-plugin-usage";
import { cli, define } from "gunshi";

const command = define({
  name: "greet",
  args: {
    name: { type: "positional", description: "Who to greet" },
    loud: { type: "boolean", description: "Shout" },
  },
  run: (ctx) => {
    const greeting = `Hello, ${ctx.values.name}!`;
    console.log(ctx.values.loud ? greeting.toUpperCase() : greeting);
  },
});

await cli(process.argv.slice(2), command, {
  name: "greet",
  version: "1.0.0",
  description: "Greet someone",
  plugins: [env(), usage()],
});

env() fills --loud from GREET_LOUD:

GREET_LOUD=1 greet world  # HELLO, WORLD!

usage() prints a spec that names the variable, so the usage CLI knows it too:

greet usage > greet.usage.kdl
GREET_LOUD=1 usage explain -f greet.usage.kdl -- greet world
# ...
# values
#   flag  --loud  true   env GREET_LOUD
#   arg   <name>  world  argv [1]

Description taken from the repository README.

Ratings

–
0 ratings
5 0
4 0
3 0
2 0
1 0

Rate this app

Sign in to rate

Comments 0

Sign in to comment

No comments yet.

Related apps

#cli · #plugins · #typescript