| title | genesis push |
|---|
genesis push publishes your built elements to a Exordos repository, making them available for deployment and for other platform users to consume.
The command reads the genesis/genesis.yaml file to identify where to push the elements. The push section defines one or more target repositories — local filesystem directories or remote HTTP endpoints.
genesis push [OPTIONS] [PROJECT_DIR]Key options:
| Option | Description |
|---|---|
-c, --genesis-cfg-file TEXT |
Name of the project configuration file (default: genesis.yaml) |
-t, --target TEXT |
Target repository to push to (if multiple are defined) |
-e, --element-dir PATH |
Directory where element artifacts are stored (default: output/) |
-f, --force |
Force push even if the element already exists |
-l, --latest |
Also push the element as the latest version (for stable versions) |
You can push elements to the public Exordos Core repository. Or you can deploy a private Exordos Core installation on your own hardware. For development and testing, you can use local laptop installation.
From your project directory after a successful build:
genesis pushThe command reads genesis.yaml, finds the push configuration, and uploads the element artifacts from the output/ directory to the configured repositories.
If your genesis.yaml defines multiple repositories, specify which one to push to:
genesis push --target localOverwrite an existing element version:
genesis push --forceFor stable releases, also tag the element as latest:
genesis push --latestThe push section in genesis.yaml defines where elements are published. You can configure multiple repositories:
push:
local:
driver: fs
path: /var/lib/exordos-pools/http
remote:
driver: nginx
url: https://repository.genesis-core.tech| Repository Type | Description |
|---|---|
local |
Local filesystem directory. Elements are copied directly to the specified path. |
remote |
Remote HTTP repository. Elements are pushed via HTTP to the configured URL. |
| Driver | Description |
|---|---|
fs |
Filesystem driver. Copies artifacts to a local directory path. |
nginx |
HTTP driver. Uploads artifacts to an HTTP/HTTPS endpoint, typically an Nginx-served repository. |
Push configuration can also be stored in a separate file, for example genesis.push.yaml:
push:
staging:
driver: fs
path: /var/lib/exordos-pools/staging
production:
driver: nginx
url: https://repo.genesis-core.tech/productionTo use a separate configuration file, specify it with the -c option:
genesis push -c genesis.push.yamlAfter a successful push, your element is available in the registry and ready for:
genesis deploy— deploy the element to a Exordos installation- Sharing with other developers in your organization
If you encounter issues while pushing elements — such as repository connection failures, authentication errors, or upload problems — refer to the Troubleshooting Guide for detailed solutions and common fixes.