Can I import profile from yaml?

Silly question - but I actually can’t seem to figure it out, nor find any info on how to do it! Is this possible?

If profile exists:

cat someyaml.yml | lxc profile edit existingprofile1

Otherwise, create an empty profile and pipe the yaml file into profile edit:

lxc profile create newprofile1
cat someyaml.yml | lxc profile edit newprofile1
1 Like