diagrid dev start
Run your code and/or establish local connectivity from 1+ App ID(s)
Description
Run your code, establish local connectivity from 1+ App ID(s) or use a combination of the two actions for a flexible development experience using the Catalyst APIs
diagrid dev start [flags]
Examples
# Configure running and/or connecting to multiple applications using an existing dev config file
diagrid dev start --file project-dev.yaml
# Run a local go application without a local app connection (inbound Catalyst connectivity only)
diagrid dev start --app-id publisher -- go run ./cmd/publisher/main.go
# Run a go application and create a local app connection from specified App ID to localhost:8080 (inbound/outbound Catalyst connectivity)
diagrid dev start --app-id subscriber --app-port 8080 -- go run ./cmd/subscriber/main.go
# Create a local app connection from specified App ID to localhost:8080 (app can be launched manually, via debugger, etc.)
diagrid dev start --app-id subscriber --app-port 8080
Options
-f, --file string Path to config file
--project string Project to use for the dev session
-a, --app-id string App ID associated to the local application
--app-host string The host your application is listening on (default "localhost")
--app-scheme string The scheme your application is listening on (default "http")
-p, --app-port int The port your application is listening on
-e, --env stringArray Environment variables needed by your application at runtime
-w, --work-dir string Path to the application code
--app-log-destination string Output destination for application logs. Supported values: file, console or all
--enable-api-logging Enable the logging of all API calls from application
-h, --help help for start
Options inherited from parent commands
--api-key string Diagrid Cloud API key
SEE ALSO
- diagrid dev - Run and connect code to the Catalyst APIs for development