> For the complete documentation index, see [llms.txt](https://support.marscat.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://support.marscat.io/development-tools/relayx-cli/release-process.md).

# Release Process

## First Release Process

Complete operation process for the first release of MarsApp:

{% stepper %}
{% step %}

### Create Project

Use the `create` command to create MarsApp.
{% endstep %}

{% step %}

### Import Certificate

Use the `import` command to import release certificate.
{% endstep %}

{% step %}

### Prepare Project

Place the MarsApp project folder and `{RelayAppAddress}.config` at the same-level directory.
{% endstep %}

{% step %}

### Sign Application

Use the `sign` command for signing.
{% endstep %}

{% step %}

### Verify Validity

Use the `check` command to verify the project.
{% endstep %}

{% step %}

### Publish Application

Use the `publish` command to release to the network.
{% endstep %}
{% endstepper %}

***

## MarsApp Update Process

When updating an already published MarsApp, follow these steps:

{% stepper %}
{% step %}

### Prepare New Version

Move the new MarsApp project to the same-level directory as `{RelayAppAddress}.config`.
{% endstep %}

{% step %}

### Modify Configuration

Edit the `config.json` file:

* Update the `version` field (keep version numbers incrementing from low to high).
* Modify other optional configuration items (`name`, `about`, `category`, `upgradeItem`, etc.).
  {% endstep %}

{% step %}

### Re-publish

Execute the publishing process: `sign` → `check` → `publish`.
{% endstep %}
{% endstepper %}

***

## Agent Release Process

Operation process for publishing using Agent:

{% hint style="info" %}
Prerequisites:

* MarsApp project has been created (using the `create` command).
* Release certificate has been imported (using the `import` command).
  {% endhint %}

### Operation Process

{% stepper %}
{% step %}

### Create Agent

Use the `agent` command to create Agent.
{% endstep %}

{% step %}

### Authorize Permissions

Master uses the `approve` command to assign publishing permissions to the Agent.
{% endstep %}

{% step %}

### View Authorization

Use the `authorized` command to confirm authorization status.
{% endstep %}

{% step %}

### Prepare Project

Place the MarsApp project folder and `{RelayAppAddress}.config` at the same-level directory.
{% endstep %}

{% step %}

### Sign Application

Use the `sign` command for digital signature.
{% endstep %}

{% step %}

### Verify Validity

Use the `check` command to verify the project.
{% endstep %}

{% step %}

### Agent Publishing

Agent uses their own password to execute the `publish` command for publishing.
{% endstep %}
{% endstepper %}

{% hint style="info" %}
Subsequent Management:

* The Master can revoke or extend Agent authorization at any time using the `approve` command.
  {% endhint %}
