Commands
This page only summarizes the CLI commands and the options for each command. For details on which scenarios they can be used, you can go to the Working with the CLI page.
Usage
snowtype [COMMAND] [OPTIONS] [CONTEXT-SPECIFIC-OPTIONS]
Available CLI commands
snowtype init
Initialize the setup of Snowtype code generation in a project. Creates the configuration file.
Options
-i, --organizationIdOrganization ID.-t, --trackerTracker to use. See available-l, --languageLanguage to use. See available-o, --outpathOutput path.
snowtype generate
Generates tracking code based on configuration on the configuration file. Can generate/modify the .snowtype-lock.json file.
Options
-c, --configConfig file path.--instructionsGenerate event specification instructions.--no-instructionsGenerate without instructions.--validationsAdd runtime validation on events. Currently available for the Browser tracker.--no-validationsDo not add runtime validation on events.--disallowDevSchemasDisallow generation of code using schemas deployed on DEV environment. Sending events using schemas deployed on DEV, will result in failed events in production pipelines. (default: false)--deprecateOnlyOnProdAvailableUpdatesShow deprecation warnings only when there are PROD available schema updates. (default: false)
snowtype update
Checks for latest version updates in Data Structures and Event Specifications.
Options
-c, --configConfig file path.-y, --yesUpdates all to latest version without prompting. (default: false)-m, --maximumBumpThe maximum SchemaVer update to show an available update notification for. Possible values are 'patch', 'minor', 'major' and will work as expected regular SemVer bumps. (default: 'major')
snowtype patch
Adds new Data Structures and Event Specifications in the snowtype.config.json file without needing to modify the file by hand.
Options
-c, --configConfig file path.-e, --eventSpecificationIdsEvent Specification ID/s.-p, --dataProductIdsData Product ID/s.-d, --dataStructuresData structure schema URI/s.-i, --igluCentralSchemasIglu central schema URI/s.-r, --repositoriesLocal Data Structure repositories generated from the snowplow-cli.
snowtype help
Shows a helpful message and brief instructions for the Snowtype CLI usage.
Global options
-h, --helpShows helpful instructions for the command.-V, --versionOutput the package version number.-k, --apiKeyProvide the Snowplow Console API key as a CLI option.-v, --verboseEnable verbose logging.