CLI
Secure Zones with CLI
3min
how to create a secure zone using graphql via the cli secure zones are simply a model object within siteglide, with this in mind, we can very easily create secure zones via the cli using graphql prerequisites you have installed the secure zone module on the instance you have setup cli and connected to your site you know how to use the graphiql editor example below is the graphql mutation that is used to create a secure zone from siteglide admin we simply pass it the name for the secure zone within the query variables mutation( 	$name string #the name of your secure zone 	){ result customization create( customization { custom model type name "modules/siteglide secure zones/secure zones" properties \[ {name "name", value $name} ] } form configuration name "modules/siteglide secure zones/secure zones" ){ id } } after running the mutation, you will see an id returned in the output window of the graphiql editor the id returning means that the mutation was successful and your new secure zone can now be used note if you already have admin open you will need to refresh it to see the new secure zone