Connect workflow

Ask about this Page
Copy for LLM
View as Markdown

Follow the process of creating, previewing, and deploying a Connector from end to end.

The Connector lifecycle spans four scenarios: development, testing, staging, and production. Creators develop, test, and publish the Connector, while clients deploy it to staging and production. You can manage each scenario using the Connect API, the Connect CLI, or the Merchant Center. For the underlying concepts and terminology, see the Connect overview.

Lifecycle at a glance

As a Connector moves through its lifecycle, it takes three forms. You develop Connect applications locally, preview and publish them as a ConnectorStaged, and deploy the resulting read-only Connector for staging and production. Each scenario maps to a Deployment type.

Run lifecycle tasks with the CLI, API, or Merchant Center

You can run each lifecycle task using the Connect CLI, the Connect API, or the Merchant Center. In the CLI, all commands are prefixed with commercetools connect. The following table maps each task to its equivalent across the three interfaces.
TaskConnect CLIConnect APIMerchant Center
Develop and test applications locallyinit, application start, application test, validateNot applicableNot applicable
Create a Connectorconnectorstaged createCreate ConnectorStagedCreate connector
Preview and test a Connectorconnectorstaged previewPreview Connector, then Create Deployment (preview)Request preview, then Deploy on Preview
Publish for private useconnectorstaged publishPublish (certification: false)Publish for private use
Publish for the marketplaceconnectorstaged certifyPublish (certification: true)List on Marketplace
Deploy for stagingdeployment create (--type sandbox)Create Deployment (sandbox)Use the CLI or API
Deploy for productiondeployment create (--type production)Create Deployment (production)Deploy on Production
Redeploy after an updatedeployment redeployRedeployRedeploy
View Deployment logsdeployment logsQuery Deployment LogsApp logs
The Merchant Center manages ConnectorStaged and Connectors as Organization Connectors and refers to Deployments as installations.