.. _agent.apps.create: Create, Deploy ************** The following actions only modify files in ````. No operating system configuration file is modified, so they are safe to experiment with. The agent support object creation via two commands: * ``create`` The object is created but not provisioned nor started. * ``deploy`` The object is created, provisioned and started. Both actions support the same arguments. The following examples use only create commands. From Scratch, non Interactive ----------------------------- Create a new object with minimal configuration. No resources are described. :: om create Resources and default keywords can be set right from the create command, using ``--kw =`` options :: om create --kw container#0.type=docker \ --kw container#0.image=google/pause \ --kw orchestrate=ha \ --kw nodes={clusternodes} From Another Object ------------------- :: om create --config= From Manifest, Single Object ---------------------------- The manifest must be json formatted, structured like ``om print config --format=json``. :: om create --config= This method can also be used to clone objects :: om print config --format json | \ om create --config=- [--interactive] [--provision] From Manifest, Multiple Objects ------------------------------- The manifest must be json formatted, structured like ``om print config --format=json``. In this case, the ```` can not be specified, but the destination namespace where to create the objects can. The new objects will adopt the names set in the manifest. :: om svc create --namespace=newns --config= :: om 'test/svc/*' print config --format=json | \ om svc create --namespace=testclone --config=- From Existing Local Configuration File -------------------------------------- Experienced users may find it easier to start from a copy of the conf file of an existing similar object. :: om create --config [--interactive] [--provision] The configuration file can be remote, referenced by URI. From Collector Template ----------------------- Templates can be served by the collector. :: om create --template [--interactive] [--provision] From Collector Service ---------------------- :: om pull .. seealso:: :ref:`agent-service-provisioning`