stackone-cli
npx skills add https://github.com/stackonehq/agent-plugins-marketplace --skill stackone-cli
Agent 安装分布
Skill 文档
StackOne CLI â Connector Development
Important
The CLI is actively developed and commands change between versions. Before providing CLI guidance:
- Fetch
https://docs.stackone.com/guides/connector-engine/cli-referencefor the current command reference - Fetch
https://www.npmjs.com/package/@stackone/clifor the latest version
Do not guess CLI commands or flags â always verify against live docs.
Instructions
Step 1: Install the CLI
npm install -g @stackone/cli
This installs the global stackone command. Verify with stackone --version.
Step 2: Understand when to build a custom connector
Custom connectors are for platforms that StackOne doesn’t natively support. Before building one:
- Check if the provider already exists: use the
stackone-connectorsskill or browse https://docs.stackone.com/connectors/introduction - If the provider exists but is missing specific actions, you may not need a full custom connector â check the Actions RPC endpoint first
Step 3: Initialize a connector project
Fetch the connector structure guide for the current project layout:
https://docs.stackone.com/guides/connector-engine/connector-structure
The Connector Engine provides:
- Project scaffolding
- Local development server for testing
- Type-safe action definitions
- Deployment tooling
Step 4: Use the AI Builder (optional)
The AI Builder can generate connector scaffolding from API documentation. Fetch the guide:
https://docs.stackone.com/guides/connector-engine/ai-builder
This accelerates development by generating boilerplate from an OpenAPI spec or API docs URL.
Step 5: Test locally
Run the connector locally to test against the target API before deploying. Fetch the CLI reference for the exact test commands:
https://docs.stackone.com/guides/connector-engine/cli-reference
Step 6: Deploy
Deploy to StackOne’s infrastructure. For automated deployments, set up CI/CD:
https://docs.stackone.com/guides/connector-engine/github-workflow
Examples
Example 1: User wants to build a connector for an internal API
User says: “We have an internal HR system. Can I connect it to StackOne?”
Actions:
- Confirm the internal API has a REST/GraphQL endpoint
- Install the CLI:
npm install -g @stackone/cli - Fetch the connector structure guide for the scaffolding command
- If they have an OpenAPI spec, suggest the AI Builder for faster scaffolding
- Walk through the init â develop â test â deploy flow
Result: Custom connector project initialized with the right structure.
Example 2: User wants to set up CI/CD for connector deployment
User says: “How do I auto-deploy connectors from GitHub?”
Actions:
- Fetch
https://docs.stackone.com/guides/connector-engine/github-workflow - Walk through the GitHub Actions workflow configuration
- Explain the deployment stages (dev â staging â production)
Result: Working GitHub Actions pipeline for connector deployment.
Troubleshooting
CLI command not found after install
Cause: Global npm bin directory not in PATH.
- Run
npm config get prefixto find the install location - Add
{prefix}/binto your PATH - Alternatively, use
npx @stackone/cliinstead of the global command
Authentication failures in CLI
Cause: Missing or invalid credentials.
- The CLI requires a StackOne API key
- Fetch the CLI reference for the current auth setup command
- Verify the key is active at https://app.stackone.com
Connector deployment fails
Cause: Various â check the error message.
- Fetch the CLI reference for deployment troubleshooting
- Common issues: missing required fields in connector config, network timeouts
- For CI/CD failures, check that secrets are correctly configured in GitHub Actions