# `Alternera.Plugins.Command`
[🔗](https://github.com/10e-ab/alternera-camel/blob/v0.9.0/alternera_plugin_command/lib/alternera/plugins/command.ex#L1)

Calls an operation of a command plugin host the proxy runs: a program in
any language that speaks the plugin hosts' protocol (frames on file descriptors
3 and 4, and for HTTP or HTTPS a loopback channel; see
`docs/internals.adoc`). The step names the host and the operation:

    %{"host" => "pricing",
      "operation" => "quote",
      "inputs" => [%{"name" => "sku", "value" => "${path.sku}"}],
      "targets" => [%{"output" => "body", "to" => %{"in" => "vars", "name" => "quote"}}]}

The step itself is `Alternera.PluginHosts.Step`; this module is the
kind of its hosts (`PluginHosts.Kind`): their configuration, with the
program as given,

    config :alternera_plugin_command,
      hosts: [
        %{name: "pricing", pool: %{min: 2, max: 2},
          executable: "/opt/pricing/bin/host",
          args: ["--config", "/etc/pricing.toml"], protocol: :msgpack,
          tenant: "acme"}
      ]

(`executable`, `args`, `cd`, `env` and `log_path`; `pool` and the rest
as for every plugin host, `PluginHosts`), and the suffix of
their HTTP channel, `.command.internal` (`Plugin.Provisional.Upstream`,
`PluginHosts.Endpoint`). An Apache Camel route has a plugin of its own,
`Plugins.Camel`.

Not shipped: installed only with `:experimental_plugins`
(`Alternera.Plugins`).

# `step`

The step's `PluginHosts.Step`.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
