@plugfn/cli
v0.0.1
Published
CLI tool for PlugFn SDK
Readme
PlugFn CLI
Command-line interface for the PlugFn SDK.
Installation
npm install -g @superfunctions/plugfn-cliCommands
plugfn init
Initialize a new PlugFn project.
plugfn init
plugfn init --directory ./my-projectCreates:
- Project structure
- Configuration file (
plugfn.config.ts) - Environment template (
.env.example) - Example code
plugfn generate-types
Generate TypeScript types for providers.
# Generate types for a specific provider
plugfn generate-types --provider github --output ./types
# Generate types for all providers
plugfn generate-types --all --output ./typesplugfn add-provider
Create a new provider from template.
plugfn add-provider --name custom-api --auth api-key
plugfn add-provider --name oauth-service --auth oauth2Options:
--name: Provider name (required)--auth: Auth type (oauth2, api-key, jwt, basic)--output: Output directory (default:./src/providers)
plugfn test
Test connections and actions.
plugfn test --provider github
plugfn test --provider github --action issues.create
plugfn test --provider github --connection conn-123Examples
Initialize a new project
mkdir my-integration-app
cd my-integration-app
plugfn init
npm installCreate a custom provider
plugfn add-provider --name shopify --auth api-keyThis creates a provider template at src/providers/shopify/index.ts.
Generate types
plugfn generate-types --allLicense
Apache-2.0
