KosmoKrator

productivity

Sellfy CLI for AI Agents

Use the Sellfy CLI from KosmoKrator to call Sellfy tools headlessly, return JSON, inspect schemas, and automate workflows from coding agents, scripts, and CI.

Sellfy CLI Setup

Sellfy can be configured headlessly with `kosmokrator integrations:configure sellfy`.

Install, configure, and verify
# Install KosmoKrator first if it is not available on PATH.
curl -fsSL https://raw.githubusercontent.com/OpenCompanyApp/kosmokrator/main/install.sh | bash

# Configure and verify this integration.
kosmokrator integrations:configure sellfy --set api_key="$SELLFY_API_KEY" --enable --read allow --write ask --json
kosmokrator integrations:doctor sellfy --json
kosmokrator integrations:status --json

Credentials

Authentication type: API key api_key. Configure credentials once, then reuse the same stored profile from scripts, coding CLIs, Lua, and MCP.

KeyEnv varTypeRequiredLabel
api_key SELLFY_API_KEY Secret secret yes API Key
url SELLFY_URL URL url no API Base URL

Command Patterns

The generic command is stable across every integration. The provider shortcut is shorter for humans.

Generic CLI call
kosmo integrations:call sellfy.sellfy_list_products '{"page_size":1,"page":1}' --json
Provider shortcut
kosmo integrations:sellfy sellfy_list_products '{"page_size":1,"page":1}' --json

Discovery

These commands return structured output for coding agents that need to inspect capabilities before choosing a function.

Discovery commands
kosmo integrations:docs sellfy --json
kosmo integrations:docs sellfy.sellfy_list_products --json
kosmo integrations:schema sellfy.sellfy_list_products --json
kosmo integrations:search "Sellfy" --json
kosmo integrations:list --json

Automation Contexts

The same configured command surface works in these environments. The command does not change unless the host wrapper, credentials, or permissions change.

CLI Functions

Every function below can be called headlessly. Commands are highlighted, copyable, and scroll horizontally when payloads are long.

sellfy.sellfy_list_products

List all products in your Sellfy store. Returns product names, prices, and status.

Read read
Parameters
page_size, page
Generic call
kosmo integrations:call sellfy.sellfy_list_products '{"page_size":1,"page":1}' --json
Shortcut
kosmo integrations:sellfy sellfy_list_products '{"page_size":1,"page":1}' --json

sellfy.sellfy_get_product

Get details for a specific Sellfy product by ID. Returns full product information including pricing, description, and status.

Read read
Parameters
id
Generic call
kosmo integrations:call sellfy.sellfy_get_product '{"id":"example_id"}' --json
Shortcut
kosmo integrations:sellfy sellfy_get_product '{"id":"example_id"}' --json

sellfy.sellfy_create_product

Create a new product in your Sellfy store. Supports digital products, subscriptions, and physical goods.

Write write
Parameters
name, price, type, description, currency
Generic call
kosmo integrations:call sellfy.sellfy_create_product '{"name":"example_name","price":1,"type":"example_type","description":"example_description","currency":"example_currency"}' --json
Shortcut
kosmo integrations:sellfy sellfy_create_product '{"name":"example_name","price":1,"type":"example_type","description":"example_description","currency":"example_currency"}' --json

sellfy.sellfy_list_orders

List all orders in your Sellfy store. Returns order details including status, totals, and customer info.

Read read
Parameters
page_size, page
Generic call
kosmo integrations:call sellfy.sellfy_list_orders '{"page_size":1,"page":1}' --json
Shortcut
kosmo integrations:sellfy sellfy_list_orders '{"page_size":1,"page":1}' --json

sellfy.sellfy_get_order

Get details for a specific Sellfy order by ID. Returns full order information including line items, totals, and customer data.

Read read
Parameters
id
Generic call
kosmo integrations:call sellfy.sellfy_get_order '{"id":"example_id"}' --json
Shortcut
kosmo integrations:sellfy sellfy_get_order '{"id":"example_id"}' --json

sellfy.sellfy_list_customers

List all customers in your Sellfy store. Returns customer names, emails, and purchase history.

Read read
Parameters
page_size, page
Generic call
kosmo integrations:call sellfy.sellfy_list_customers '{"page_size":1,"page":1}' --json
Shortcut
kosmo integrations:sellfy sellfy_list_customers '{"page_size":1,"page":1}' --json

sellfy.sellfy_get_current_user

Get the currently authenticated Sellfy user profile. Useful for verifying API credentials and viewing account info.

Read read
Parameters
none
Generic call
kosmo integrations:call sellfy.sellfy_get_current_user '{}' --json
Shortcut
kosmo integrations:sellfy sellfy_get_current_user '{}' --json

Function Schemas

Use these parameter tables when building CLI payloads without calling integrations:schema first.

sellfy.sellfy_list_products 2 parameters
Schema command
kosmo integrations:schema sellfy.sellfy_list_products --json
ParameterTypeRequiredDescription
page_size integer no Number of products per page (default: 10).
page integer no Page number for pagination (default: 1).
sellfy.sellfy_get_product 1 parameters
Schema command
kosmo integrations:schema sellfy.sellfy_get_product --json
ParameterTypeRequiredDescription
id string yes The product ID.
sellfy.sellfy_create_product 5 parameters
Schema command
kosmo integrations:schema sellfy.sellfy_create_product --json
ParameterTypeRequiredDescription
name string yes The product name.
price number yes The product price.
type string no Product type (e.g., "digital", "subscription", "physical"). Default: "digital".
description string no Product description.
currency string no Currency code (e.g., "USD", "EUR"). Default: store default.
sellfy.sellfy_list_orders 2 parameters
Schema command
kosmo integrations:schema sellfy.sellfy_list_orders --json
ParameterTypeRequiredDescription
page_size integer no Number of orders per page (default: 10).
page integer no Page number for pagination (default: 1).
sellfy.sellfy_get_order 1 parameters
Schema command
kosmo integrations:schema sellfy.sellfy_get_order --json
ParameterTypeRequiredDescription
id string yes The order ID.
sellfy.sellfy_list_customers 2 parameters
Schema command
kosmo integrations:schema sellfy.sellfy_list_customers --json
ParameterTypeRequiredDescription
page_size integer no Number of customers per page (default: 10).
page integer no Page number for pagination (default: 1).
sellfy.sellfy_get_current_user 0 parameters
Schema command
kosmo integrations:schema sellfy.sellfy_get_current_user --json
ParameterTypeRequiredDescription
No parameters.

Permissions

Headless calls still follow the integration read/write permission policy. Configure read/write defaults with integrations:configure. Add --force only for trusted automation that should bypass that policy.