Skip to main content
The StackOne CLI (@stackone/cli) provides commands for building, validating, testing, and deploying custom connectors.

Full Documentation

Complete CLI documentation on npm

Installation


Command Reference

Agent Commands

Set up the agent, and the MCP server that gives an AI coding assistant StackOne’s tools.
The API key is stored in ~/.stackone/agent-config.json either way. The MCP server entry goes to ~/.claude.json for --global, or the project’s .mcp.json for --local.
Use --local in the repo where you build connectors, since it’s the only mode that installs the skills and the guide. It authenticates you at the same time, so --global is not a prerequisite. Passing neither flag prompts for the mode.

Chat and one-shot runs

Most of the time you’ll build in Claude Code, which picks up the .mcp.json and skills that agent setup --local installs. agent chat is the alternative when you’d rather stay in the terminal without a separate editor or assistant. It defaults to build mode, accepts /commands, and you can point it at what you’re working on:
--temperature (0 to 1, default 0.5) adjusts how much the agent varies its approach. For scripted use, agent run takes the prompt as an argument and exits when it’s done:
--max-turns defaults to 25.

Skills

agent setup --local installs a set of connector-building skills into .claude/skills/. List what you have, and the subset recommended for a mode:
After upgrading the CLI, refresh the copies in your project:

Connector Development

Test file formats:
Params structure: each top-level key corresponds to an input’s in: location in the action’s YAML. Put every value under the key that matches where the input is sent. You can pass the same object inline instead of a file:
Faster iteration: Once your connector is pushed or an account is already linked, skip the credentials file and use --account-id instead:
This uses stored credentials from the linked account, making it easier to iterate on action logic without managing local credential files.Note: Using --account-id requires an API key with connectors:read scope.

Deployment

Deployment commands require an API key with Connectors scopes. See API Keys to generate one.

Configuration


Environment Variables

API keys are passed via --api-key flag or stored in your profile configuration, not as environment variables.

Next Steps

First Connector

Build a connector from scratch with these commands

GitHub CI/CD

Automated validation and publishing with GitHub Actions