This is a short tutorial on how to create a new charm for testing purposes in a few steps:
- Install charmcraft:
sudo snap install --beta charmcraft
- Get a fake charm from https://github.com/jkfran/wordpress-fran
- Register your charm name:
charmcraft register <charm_name>
Replace<charm_name>
with the name you want for your charm - Update the
metadata.yaml
file in your fake charm to use the same name you registered in the previous step - Build your charm:
charmcraft build
- Upload your charm:
charmcraft upload --charm-file <charm_name>.charm
- Release your charm:
charmcraft release 1 stable