Skip to content

reusable #263

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 10, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 6 additions & 51 deletions apps/docs/content/bun/how-to/controls.mdx
Original file line number Diff line number Diff line change
@@ -1,57 +1,12 @@
---
title: Stop and start Bun service
description: Learn how you can stop and start your node.js service on Zerops.
description: Learn how you can stop and start your bun service on Zerops.
---

Zerops allows you to stop any service. Stopped services only consume disk.
import { SetVar } from '/src/components/content/var';
import ServiceContent from '/src/components/content/start-stop.mdx';

## Stop, start and restart Bun service in Zerops GUI
<SetVar name="service" value="bun" />
<SetVar name="serviceDisplay" value="Bun" />

To stop the Bun service in Zerops GUI go to the project dashboard and select the **Stop** menu item in the top right corner.

{/*TODO screenshot (show menu with the start and stop items on a service)*/}

To start the stopped Bun service choose the **Start** item from the same menu.

To restart the Bun service choose the **Restart** item from the same menu.

## Stop and start Bun using zCLI

zCLI is the Zerops command-line tool. To stop and start the Bun service via the command-line, follow these steps:

1. [Install & setup zCLI](/references/cli)
2. Run the `zcli service stop` command

```sh
Usage:
zcli service stop [serviceIdOrName] [flags]

Flags:
-h, --help the enable Zerops subdomain command.
--projectId string If you have access to more than one project, you must specify the project ID for which the
command is to be executed.
--serviceId string If you have access to more than one service, you must specify the service ID for which the
command is to be executed.
```

:::info
zCLI commands are interactive, when you press enter after `zcli service stop`, you will be given a list of your projects and services to choose from.
:::

3. Run the `zcli service start` command

```sh
Usage:
zcli service start [{serviceName | serviceId}] [flags]

Flags:
-h, --help the service start command.
--projectId string If you have access to more than one project, you must specify the project ID for which the
command is to be executed.
--serviceId string If you have access to more than one service, you must specify the service ID for which the
command is to be executed.
```

:::info
zCLI commands are interactive, when you press enter after `zcli service start`, you will be given a list of your projects and services to choose from.
:::
<ServiceContent />
29 changes: 4 additions & 25 deletions apps/docs/content/bun/how-to/delete.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,30 +3,9 @@ title: Delete Bun service
description: Learn how you can delete your node.js service on Zerops.
---

## Delete Bun service in Zerops GUI
import { SetVar } from '/src/components/content/var';
import DeleteContent from '/src/components/content/delete.mdx';

Go to the project dashboard and select the **delete service** menu item in the top right corner.
<SetVar name="serviceDisplay" value="Bun" />

{/*TODO screenshot (show menu with the delete service item)*/}

## Delete Bun using zCLI

zCLI is the Zerops command-line tool. To delete the Bun service via the command-line, follow these steps:

1. [Install & setup zCLI](/references/cli)
2. Run the `zcli service delete` command

```sh
Usage:
zcli service delete [serviceIdOrName] [flags]

Flags:
--confirm If set, zCLI will not ask for confirmation of destructive operations.
-h, --help the service delete command.
--projectId string If you have access to more than one project, you must specify the project ID for which the
command is to be executed.
--serviceId string If you have access to more than one service, you must specify the service ID for which the
command is to be executed.
```

zCLI commands are interactive, when you press enter after `zcli service delete`, you will be given a list of your projects and its services to choose from.
<DeleteContent />
8 changes: 6 additions & 2 deletions apps/docs/content/bun/how-to/upgrade.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ title: How to upgrade the Bun version
description: Learn how to upgrade your node.js service's version
---

You can upgrade or downgrade your Bun service to a different major Bun version by setting the <a href="bun/how-to/build-pipeline#base-1">`run.base`</a> parameter in your `zerops.yaml`. When you [trigger a new pipeline](bun/how-to/trigger-pipeline), Zerops will start new runtime container(s) with the required Bun version. If you don't specify the `run.base` attribute in your `zerops.yaml`, Zerops keeps the current Bun version for your runtime.
import { SetVar } from '/src/components/content/var';
import VersionUpgradeContent from '/src/components/content/upgrade.mdx';

If you want to build your application with a different major Bun version, change the <a href="bun/how-to/build-pipeline#base">`build.base`</a> parameter in your `zerops.yaml`. The `build.base` is the required attribute.
<SetVar name="serviceDisplay" value="Bun" />
<SetVar name="servicePath" value="bun" />

<VersionUpgradeContent />
54 changes: 5 additions & 49 deletions apps/docs/content/deno/how-to/controls.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,54 +3,10 @@ title: Stop and start Deno service
description: Learn how you can stop and start your deno service on Zerops.
---

Zerops allows you to stop any service. Stopped services only consume disk.
import { SetVar } from '/src/components/content/var';
import ServiceContent from '/src/components/content/start-stop.mdx';

## Stop, start and restart Deno service in Zerops GUI
<SetVar name="service" value="deno" />
<SetVar name="serviceDisplay" value="Deno" />

To stop the Deno service in Zerops GUI go to the project dashboard and select the **Stop** menu item in the top right corner.

{/*TODO screenshot (show menu with the start and stop items on a service)**/}
To start the stopped Deno service choose the **Start** item from the same menu.

To restart the Deno service choose the **Restart** item from the same menu.

## Stop and start Deno using zCLI

zCLI is the Zerops command-line tool. To stop and start the Deno service via the command-line, follow these steps:

1. [Install & setup zCLI](/references/cli)
2. Run the `zcli service stop` command

```sh
Usage:
zcli service stop [serviceIdOrName] [flags]

Flags:
-h, --help the enable Zerops subdomain command.
--projectId string If you have access to more than one project, you must specify the project ID for which the
command is to be executed.
--serviceId string If you have access to more than one service, you must specify the service ID for which the
command is to be executed.
```

:::info
zCLI commands are interactive, when you press enter after `zcli service stop`, you will be given a list of your projects and services to choose from.
:::

3. Run the `zcli service start` command

```sh
Usage:
zcli service start [{serviceName | serviceId}] [flags]

Flags:
-h, --help the service start command.
--projectId string If you have access to more than one project, you must specify the project ID for which the
command is to be executed.
--serviceId string If you have access to more than one service, you must specify the service ID for which the
command is to be executed.
```

:::info
zCLI commands are interactive, when you press enter after `zcli service start`, you will be given a list of your projects and services to choose from.
:::
<ServiceContent />
29 changes: 4 additions & 25 deletions apps/docs/content/deno/how-to/delete.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,30 +3,9 @@ title: Delete Deno service
description: Learn how you can delete your deno service on Zerops.
---

## Delete Deno service in Zerops GUI
import { SetVar } from '/src/components/content/var';
import DeleteContent from '/src/components/content/delete.mdx';

Go to the project dashboard and select the **delete service** menu item in the top right corner.
<SetVar name="serviceDisplay" value="Deno" />

{/*TODO screenshot (show menu with the delete service item)*/}

## Delete Deno using zCLI

zCLI is the Zerops command-line tool. To delete the Deno service via the command-line, follow these steps:

1. [Install & setup zCLI](/references/cli)
2. Run the `zcli service delete` command

```sh
Usage:
zcli service delete [serviceIdOrName] [flags]

Flags:
--confirm If set, zCLI will not ask for confirmation of destructive operations.
-h, --help the service delete command.
--projectId string If you have access to more than one project, you must specify the project ID for which the
command is to be executed.
--serviceId string If you have access to more than one service, you must specify the service ID for which the
command is to be executed.
```

zCLI commands are interactive, when you press enter after `zcli service delete`, you will be given a list of your projects and its services to choose from.
<DeleteContent />
8 changes: 6 additions & 2 deletions apps/docs/content/deno/how-to/upgrade.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ title: How to upgrade the Deno version
description: Learn how to upgrade your deno service's version
---

You can upgrade or downgrade your Deno service to a different major Deno version by setting the <a href="/deno/how-to/build-pipeline#base-1">`run.base`</a> parameter in your `zerops.yaml`. When you [trigger a new pipeline](/deno/how-to/trigger-pipeline), Zerops will start new runtime container(s) with the required Deno version. If you don't specify the `run.base` attribute in your `zerops.yaml`, Zerops keeps the current Deno version for your runtime.
import { SetVar } from '/src/components/content/var';
import VersionUpgradeContent from '/src/components/content/upgrade.mdx';

If you want to build your application with a different major Deno version, change the <a href="/deno/how-to/build-pipeline#base">`build.base`</a> parameter in your `zerops.yaml`. The `build.base` is the required attribute.
<SetVar name="serviceDisplay" value="Deno" />
<SetVar name="servicePath" value="deno" />

<VersionUpgradeContent />
55 changes: 5 additions & 50 deletions apps/docs/content/dotnet/how-to/controls.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,55 +3,10 @@ title: Stop and start .NET service
description: Learn how you can stop and start your dotnet service on Zerops.
---

Zerops allows you to stop any service. Stopped services only consume disk.
import { SetVar } from '/src/components/content/var';
import ServiceContent from '/src/components/content/start-stop.mdx';

## Stop, start and restart .NET service in Zerops GUI
<SetVar name="service" value="dotnet" />
<SetVar name="serviceDisplay" value=".NET" />

To stop the .NET service in Zerops GUI go to the project dashboard and select the **Stop** menu item in the top right corner.

{/*TODO screenshot (show menu with the start and stop items on a service)*/}

To start the stopped .NET service choose the **Start** item from the same menu.

To restart the .NET service choose the **Restart** item from the same menu.

## Stop and start .NET using zCLI

zCLI is the Zerops command-line tool. To stop and start the .NET service via the command-line, follow these steps:

1. [Install & setup zCLI](/references/cli)
2. Run the `zcli service stop` command

```sh
Usage:
zcli service stop [serviceIdOrName] [flags]

Flags:
-h, --help the enable Zerops subdomain command.
--projectId string If you have access to more than one project, you must specify the project ID for which the
command is to be executed.
--serviceId string If you have access to more than one service, you must specify the service ID for which the
command is to be executed.
```

:::info
zCLI commands are interactive, when you press enter after `zcli service stop`, you will be given a list of your projects and services to choose from.
:::

3. Run the `zcli service start` command

```sh
Usage:
zcli service start [{serviceName | serviceId}] [flags]

Flags:
-h, --help the service start command.
--projectId string If you have access to more than one project, you must specify the project ID for which the
command is to be executed.
--serviceId string If you have access to more than one service, you must specify the service ID for which the
command is to be executed.
```

:::info
zCLI commands are interactive, when you press enter after `zcli service start`, you will be given a list of your projects and services to choose from.
:::
<ServiceContent />
29 changes: 4 additions & 25 deletions apps/docs/content/dotnet/how-to/delete.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,30 +3,9 @@ title: Delete .NET service
description: Learn how you can delete your dotnet service on Zerops.
---

## Delete .NET service in Zerops GUI
import { SetVar } from '/src/components/content/var';
import DeleteContent from '/src/components/content/delete.mdx';

Go to the project dashboard and select the **delete service** menu item in the top right corner.
<SetVar name="serviceDisplay" value=".NET" />

{/*TODO screenshot (show menu with the delete service item)*/}

## Delete .NET using zCLI

zCLI is the Zerops command-line tool. To delete the .NET service via the command-line, follow these steps:

1. [Install & setup zCLI](/references/cli)
2. Run the `zcli service delete` command

```sh
Usage:
zcli service delete [serviceIdOrName] [flags]

Flags:
--confirm If set, zCLI will not ask for confirmation of destructive operations.
-h, --help the service delete command.
--projectId string If you have access to more than one project, you must specify the project ID for which the
command is to be executed.
--serviceId string If you have access to more than one service, you must specify the service ID for which the
command is to be executed.
```

zCLI commands are interactive, when you press enter after `zcli service delete`, you will be given a list of your projects to choose from.
<DeleteContent />
8 changes: 6 additions & 2 deletions apps/docs/content/dotnet/how-to/upgrade.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ title: How to upgrade the .NET version
description: Learn how to upgrade your dotnet service's version
---

You can upgrade or downgrade your .NET service to a different major .NET version by setting the <a href="/dotnet/how-to/build-pipeline#base-1">`run.base`</a> parameter in your `zerops.yaml`. When you [trigger a new pipeline](/dotnet/how-to/trigger-pipeline), Zerops will start new runtime container(s) with the required .NET version. If you don't specify the `run.base` attribute in your `zerops.yaml`, Zerops keeps the current .NET version for your runtime.
import { SetVar } from '/src/components/content/var';
import VersionUpgradeContent from '/src/components/content/upgrade.mdx';

If you want to build your application with a different major .NET version, change the <a href="/dotnet/how-to/build-pipeline#base">`build.base`</a> parameter in your `zerops.yaml`. The `build.base` is the required attribute.
<SetVar name="serviceDisplay" value=".NET" />
<SetVar name="servicePath" value="dotnet" />

<VersionUpgradeContent />
55 changes: 5 additions & 50 deletions apps/docs/content/elixir/how-to/controls.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,55 +3,10 @@ title: Stop and start Elixir service
description: Learn how you can stop and start your Elixir service on Zerops.
---

Zerops allows you to stop any service. Stopped services only consume disk.
import { SetVar } from '/src/components/content/var';
import ServiceContent from '/src/components/content/start-stop.mdx';

## Stop, start and restart Elixir service in Zerops GUI
<SetVar name="service" value="elixir" />
<SetVar name="serviceDisplay" value="Elixir" />

To stop the Elixir service in Zerops GUI go to the project dashboard and select the **Stop** menu item in the top right corner.

{/*TODO screenshot (show menu with the start and stop items on a service)*/}

To start the stopped Elixir service choose the **Start** item from the same menu.

To restart the Elixir service choose the **Restart** item from the same menu.

## Stop and start Elixir using zCLI

zCLI is the Zerops command-line tool. To stop and start the Elixir service via the command-line, follow these steps:

1. [Install & setup zCLI](/references/cli)
2. Run the `zcli service stop` command

```sh
Usage:
zcli service stop [serviceIdOrName] [flags]

Flags:
-h, --help the enable Zerops subdomain command.
--projectId string If you have access to more than one project, you must specify the project ID for which the
command is to be executed.
--serviceId string If you have access to more than one service, you must specify the service ID for which the
command is to be executed.
```

:::info
zCLI commands are interactive, when you press enter after `zcli service stop`, you will be given a list of your projects and services to choose from.
:::

3. Run the `zcli service start` command

```sh
Usage:
zcli service start [{serviceName | serviceId}] [flags]

Flags:
-h, --help the service start command.
--projectId string If you have access to more than one project, you must specify the project ID for which the
command is to be executed.
--serviceId string If you have access to more than one service, you must specify the service ID for which the
command is to be executed.
```

:::info
zCLI commands are interactive, when you press enter after `zcli service start`, you will be given a list of your projects and services to choose from.
:::
<ServiceContent />
Loading