Generate Files

The Specify CLI can be configured by default with a configuration file named .specifyrc.json . You can also override these settings from command line parameters.

The configuration file lets you describe your transformation pipelines (aka Parser Rule) following the Parser Engine API to generate your output. The configuration file 101 guide provides full documentation of the configuration file API.

Example: Export All Tokens and Assets In JSON

SPECIFY_PAT=xxxxxxxxxxxxxxxxxx specify pull \
    -C "my-custom-config.json" \
    -r "<@your-organization/your-repository-name>"
my-custom-config.json
{
  "version": "2",
  "rules": [
    {
      "name": "Export All Tokens and Assets In a JSON File In SDTF",
      "parsers": [
        {
          "name": "to-sdtf",
          "output": {
            "type": "file",
            "filePath": "sdtf.json"
          }
        }
      ]
    }
  ]
}

Last updated