Skip to content

Commands

sesamy-cli is built with Cobra. Every command supports --help and shell completion.

Global flags

FlagShorthandDefaultPurpose
--config-csesamy.yamlPath to a config file. Repeat to layer multiple files.
--verbose-vfalsePrint debug output.
--help-hShow help for any command.

Available commands

CommandWhat it does
provision web / provision serverApply local config to a GTM container.
list web / list serverList entities currently in a container.
diff web / diff serverShow planned changes without applying them.
typescriptGenerate TypeScript event types from sesamy-go.
tagsPrint every provider tag the CLI knows about.
openOpen the GTM or GA console for the configured account.
configPrint the merged effective config.
versionPrint the binary version.
completion <shell>Emit shell completion script.

The web / server pair

Most commands have web and server subcommands, one per GTM container type. Provider behavior differs between them — e.g. Facebook's Conversions API only makes sense in the server container — so the CLI keeps them distinct.

bash
sesamy provision web      # web container
sesamy provision server   # server container

Run both whenever you change the config.