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.

7 functions 6 read 1 write API key auth

Sellfy CLI Setup

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

# 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 use the same stored profile from scripts, coding CLIs, Lua code mode, and the MCP gateway.

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

Call Sellfy Headlessly

Use the generic call form when another coding CLI or script needs a stable universal interface.

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

Use the provider shortcut form for shorter human-facing commands.

kosmo integrations:sellfy sellfy_list_products '{
  "page_size": 1,
  "page": 1
}' --json

Agent Discovery Commands

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

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

All CLI Functions

Every function below can be called headlessly. The generic form is stable across all integrations; the provider shortcut is shorter but specific to Sellfy.

sellfy.sellfy_list_products

Read read

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

Parameters
page_size, page

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

sellfy.sellfy_get_product

Read read

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

Parameters
id

Generic CLI call

kosmo integrations:call sellfy.sellfy_get_product '{"id":"example_id"}' --json

Provider shortcut

kosmo integrations:sellfy sellfy_get_product '{"id":"example_id"}' --json

sellfy.sellfy_create_product

Write write

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

Parameters
name, price, type, description, currency

Generic CLI call

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

Provider 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

Read read

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

Parameters
page_size, page

Generic CLI call

kosmo integrations:call sellfy.sellfy_list_orders '{"page_size":1,"page":1}' --json

Provider shortcut

kosmo integrations:sellfy sellfy_list_orders '{"page_size":1,"page":1}' --json

sellfy.sellfy_get_order

Read read

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

Parameters
id

Generic CLI call

kosmo integrations:call sellfy.sellfy_get_order '{"id":"example_id"}' --json

Provider shortcut

kosmo integrations:sellfy sellfy_get_order '{"id":"example_id"}' --json

sellfy.sellfy_list_customers

Read read

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

Parameters
page_size, page

Generic CLI call

kosmo integrations:call sellfy.sellfy_list_customers '{"page_size":1,"page":1}' --json

Provider shortcut

kosmo integrations:sellfy sellfy_list_customers '{"page_size":1,"page":1}' --json

sellfy.sellfy_get_current_user

Read read

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

Parameters
none

Generic CLI call

kosmo integrations:call sellfy.sellfy_get_current_user '{}' --json

Provider 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

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

Operation
Read read
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

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

Operation
Read read
Schema command
kosmo integrations:schema sellfy.sellfy_get_product --json
ParameterTypeRequiredDescription
id string yes The product ID.

sellfy.sellfy_create_product

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

Operation
Write write
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

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

Operation
Read read
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

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

Operation
Read read
Schema command
kosmo integrations:schema sellfy.sellfy_get_order --json
ParameterTypeRequiredDescription
id string yes The order ID.

sellfy.sellfy_list_customers

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

Operation
Read read
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

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

Operation
Read read
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.