api2cli-publish-to-npm
Publish to npm
Publish an api2cli-generated CLI to the npm registry so users can install it with npm i -g <name> or run it with npx <name>.
Phase 1: Pre-flight
Run these checks silently. Only stop if auth is missing.
Auth
Run npm whoami.
- If it succeeds: note the username, continue.
- If it fails: tell the user to run
npm loginfirst. Stop and wait until they confirm.
Resolve package name
Read name from package.json. Determine the publish name:
More from melvynx/api2cli
api2cli
Generate or discover a CLI + AgentSkill for any REST API. Use when: user says 'create a CLI for X', 'wrap this API', 'search if a CLI exists', 'install an existing CLI', 'make a skill for X', 'publish my CLI', 'publish to npm', 'push to github'. Handles registry search, install, discovery, scaffolding, resource implementation, building, linking, skill generation, npm publishing, and GitHub publishing.
104api2cli-publish-to-github
Publishes an api2cli-generated CLI to a GitHub repository. Handles git init, .gitignore, committing, and gh repo create. Use when user asks to "push to github", "publish to github", "create a github repo", "add to github", or "put this on github".
2