New

The new command creates an empty manifest file.

genesystem new

You will be prompted for a manifest name. The default is manifest.json but you may call the manifest whatever you wish (i.e. macos.json, debian.json etc.).

Please enter the name of the manifest (manifest.json)

You can press enter to accept the default name.

If you wish to write your manifest using the Jsonnet templating language in your manifest, use .jsonnet instead of .json as the file extension in the name.

You will then be prompted for an output location.

Please specify output location (/Users/user/Code) 

The default option will be the current directory you’re in, in the above example this is /users/user/Code. Press enter to accept the default.

Once the command completes, an example manifest will be rendered at the chosen location, it looks like this:

{
  "name": "manifest.json",
  "version": "0.0.1",
  "metadata": {
    "gene_system": {
      "version": "0.3.2"
    }
  },
  "steps": [
    {
      "name": "say hello",
      "exe": {
        "install": {
          "cmd": [
            "echo hello"
          ]
        },
        "remove": {
          "cmd": [
            "echo goodbye"
          ]
        }
      },
      "tags": "example step"
    }
  ]
}

From here you can add the steps for configuration.