# publish-container

## Description

* This command can be used to publish a local Container to a remote repository using a given publisher.

## Syntax

`ern publish-container <containerPath>`

**Arguments**

`<containerPath>`

* The local file system path to the directory containing the Container to publish.

**Options**

`--version/-v <version>`

* Specify the Container version to use for publication.
* The version must be in the format: `x.y.z` where x, y and z are integers. For example `version=1.2.30`.
* Defaults to `1.0.0`.

`--publisher/-p <publisher>`

* Specify the Container publisher to use.
* This option is required, there is no default.
* You can also use a local file system path to a Container publisher package (only used for developing custom publishers)

`--url/-u <url>`

* The url to publish the Container to&#x20;
* Some publishers might not need an url. Check the specific Container publisher documentation for reference

`--config/-c <config>`

* Extra configuration specific to the publisher used.
* Some publishers might not need an extra configuration. Check the Container publisher documentation for reference.

## Related commands

\[ern create-container] | Create a new container (native or JavaScript only) locally to the workstation.

\[ern create-container]: ./create-container.md


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://native.electrode.io/v0.20/cli-commands/publish-container.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
