CLI Commands
publish
Thepublish command publishes your local MCP server to the Cogni+ Platform.
Usage
Description
Thepublish command takes a local MCP server that you’ve developed and tested, and publishes it to the Cogni+ Platform. This makes your model server available in the cloud for you and your organization to use.
Publishing a model server involves:
- Validating the model’s configuration
- Packaging the model and its dependencies
- Uploading to the Cogni+ Platform registry
- Creating a deployment record in your account
Options
| Option | Description |
|---|---|
--version TEXT | Version string for this publication (default: auto-increment) |
--description TEXT | Short description of the model or this version |
--private | Publish as a private model (only visible to your organization) |
--public | Publish as a public model (visible to all Cogni+ users) |
--tags TEXT | Comma-separated list of tags to apply |
--dry-run | Validate the package but don’t actually publish |
--help | Show help message for the publish command |
Arguments
| Argument | Description |
|---|---|
SERVER_ID | The ID or path of the server to publish |
Examples
Output
Publishing Process
- Validation: The CLI checks that your model server meets all requirements
- Packaging: The server is packaged into a portable format
- Upload: The package is securely uploaded to the Cogni+ Platform
- Registration: The model is registered in your account or organization
- Review: For public models, a brief review ensures quality standards
- Deployment: After review, the model is available for deployment
Visibility Options
- Private: Only visible to your organization members
- Public: Available to all Cogni+ users (subject to review)
Related Commands
cogni resources- Manage resources like model filescogni mcp- Manage local MCP servers before publishing
Tips
- Test your model thoroughly locally before publishing
- Use semantic versioning (e.g., 1.0.0) for version numbering
- Provide a clear description to help users understand your model
- Use tags to make your model discoverable
- For large models, ensure you have a stable internet connection