Configure CodeWind with Appsody CLI

This guide will help you setup the appsody CLI and CodeWind to work with the same set of appsody stacks using the same repo.

  • Edit the appsody CLI file ~/.appsody/.appsody.yaml to point to the CodeWind file codewind-workspace/.appsody.

home: /Users/<username>/codewind-workspace/.appsody

Adjust the <username> to match your system, now both Appsody CLI and CodeWind should see the same set of stacks.

  • Add the kabanero repo using the appsody CLI, adjust the URL to match the version of Kabanero Enterprise

appsody repo add kabanero
  • Set the kabanero repo as default

appsody repo set-default kabanero
  • If you have two repos that contains the same stack names, the CodeWind new project wizard would not be able to differentiate. To avoid duplicate entries in the wizard remove all apsody repos except kabanero

appsody repo remove experimental
appsody repo remove appsodyhub
  • List the appsody stacks using the kabanero repo

appsody list

REPO     	ID               	VERSION  	TEMPLATES        	DESCRIPTION
*kabanero	java-microprofile	0.2.11   	*default         	Eclipse MicroProfile on Open Liberty & OpenJ9 using Maven
*kabanero	java-spring-boot2	0.3.9    	*default, kotlin 	Spring Boot using OpenJ9 and Maven
*kabanero	nodejs           	0.2.5    	*simple          	Runtime for Node.js applications
*kabanero	nodejs-express   	0.2.5    	*simple, skaffold	Express web framework for Node.js
*kabanero	nodejs-loopback  	0.1.4    	*scaffold        	LoopBack 4 API Framework for Node.js
  • Restart CodeWind extensions for the changes to take effect, by switching the toggle to off and back to on on the CodeWind view.

codewind restart
  • Create a new Appsody app using CodeWind, right click the Project

codewind new project
  • Select an Appsody Stack from the kabanero repo

codewind new project list