Secure Zones with CLI

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

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.

GraphQL

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.

Document image

Note

If you already have Admin open you will need to refresh it to see the new Secure Zone.