Gateway CLI reference

Graftcode Gateway is installed separately. The CLI executable is gg (gg.exe on Windows). Download it from Gateway releases or follow Run Gateway locally.

Run gg --help for the installed release. Pass the built module as the first positional argument:

gg ./path/to/module.dll

Without a module path, Gateway scans the current directory and attempts runtime detection. All options below are optional.

OptionBehavior
first positional argumentMain module path (preferred)
--modulesComma-separated module paths (alternative to the positional argument)
--runtimeauto, clr, netcore, java, jvm, python, python27, ruby, nodejs, php, perl
--projectKeyPortal project JWT; overridden by GC_PROJECT_KEY
--endpointGraftcode Engine endpoint; default https://grft.dev, overridden by the legacy GSMU_ENDPOINT variable
--portWebSocket port; default 80
--httpPortVision HTTP port; default 81
--tcpServer / --tcpPortEnable TCP; default port 82
--http2Server / --http2PortEnable HTTP/2; default port 83
--GVHost Vision; default on
--typesComma-separated hosted type names
--methodsComma-separated hosted method names
--runAppRun the application entry point
--mcpBaseClassDeclaring type FQN for MCP tools/call resolution
--corsAllowedOriginsComma-separated CORS origins or *
--corsConfigCORS key=value file; file values can override CLI defaults
--useContextExpose request context/headers to hosted code
--noVersioningDisable hosted-module versioning
--keepVersioningEnable versioning (default true; standalone disables unless set)
--doNotExtractBinariesUse externally supplied binaries
--configExternal server-plugin JSON path

Gateway does not provide a --health, metrics, drain, reload, TLS-certificate, or global invocation-timeout option.

Next steps