1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 21:46:22 +01:00
Files
openshift-docs/modules/opm-cli-ref-serve.adoc
2021-10-01 06:14:12 +00:00

36 lines
759 B
Plaintext

// Module included in the following assemblies:
//
// * cli_reference/opm/cli-opm-ref.adoc
[id="opm-cli-ref-server_{context}"]
= serve
Serve declarative configs via a GRPC server.
[NOTE]
====
The declarative config directory is loaded by the `serve` command at startup. Changes made to the declarative config after this command starts are not reflected in the served content.
====
.Command syntax
[source,terminal]
----
$ opm serve <source_path> [<flags>]
----
.`serve` flags
[options="header",cols="1,3"]
|===
|Flag |Description
|`--debug`
|Enable debug logging.
|`-p`, `--port` (string)
|Port number to serve on. Default: `50051`.
|`-t`, `--termination-log` (string)
|Path to a container termination log file. Default: `/dev/termination-log`.
|===