From 2a0f68166690af6e79669e09653d24de968b08a6 Mon Sep 17 00:00:00 2001 From: Petra Vankova Date: Tue, 5 Aug 2025 10:12:11 +0200 Subject: [PATCH] zcli project scope & project env --- apps/docs/content/references/cli/commands.mdx | 35 +- apps/docs/static/llms-full.txt | 332 ++++++++++-------- apps/docs/static/llms-small.txt | 186 +++++----- 3 files changed, 299 insertions(+), 254 deletions(-) diff --git a/apps/docs/content/references/cli/commands.mdx b/apps/docs/content/references/cli/commands.mdx index 82aead7d..99d4309e 100644 --- a/apps/docs/content/references/cli/commands.mdx +++ b/apps/docs/content/references/cli/commands.mdx @@ -109,6 +109,21 @@ zcli project delete [project-id] [flags] - `--confirm` - Skip confirmation prompts for destructive operations - `-P, --project-id string` - Required when you have access to multiple projects +### project env + +Displays environment variables for the current project scope. + +```sh +zcli project env [flags] +``` + +**Flags:** +- `--export` - Prepends export keyword to each env in output: `export {{.Key}}={{.Value}}` +- `-P, --project-id string` - Required when you have access to multiple projects +- `--service string` - Service name, in which context the environment variables are output +- `--template string` - Output template (default: "`{{.Key}}={{.Value}}`") +- `--user-only` - Exclude all non user env variables + ### project project-import Creates a new project with one or more services from a YAML definition. @@ -132,25 +147,17 @@ zcli project service-import importYamlPath [flags] **Flags:** - `-P, --project-id string` - Required when you have access to multiple projects -### scope project +### project scope -Sets the default project for commands that require a project ID. +Sets or clears the default project scope for commands that require a project ID. ```sh -zcli scope project [project-id] +zcli project scope [project-id] [flags] ``` -:::tip -Instead of using the `scope project` command, you can also set a default project ID in a `.zcli.yml` file or via the `ZEROPS_PROJECTID` environment variable. See the [Configuration](/references/cli/configuration) page for details. -::: - -### scope reset - -Resets the default project and service scope. - -```sh -zcli scope reset -``` +**Flags:** +- `--clear` - Clear project scope +- `-P, --project-id string` - Required when you have access to multiple projects ## Service Operations diff --git a/apps/docs/static/llms-full.txt b/apps/docs/static/llms-full.txt index a4291f66..d825b0d1 100644 --- a/apps/docs/static/llms-full.txt +++ b/apps/docs/static/llms-full.txt @@ -838,10 +838,10 @@ When you have your `description.yaml` ready, use the `zcli project project-impor Usage: zcli project project-import importYamlPath [flags] Flags: - -h, --help the project import command. - --orgId string If you have access to more than one organization, you must specify the org ID for which the + -h, --help Help for the project import command. + --org-id string If you have access to more than one organization, you must specify the org ID for which the project is to be created. - --workingDie string Sets a custom working directory. Default working directory is the current directory. (default "./") + --working-dir string Sets a custom working directory. Default working directory is the current directory. (default "./") ``` Zerops will create a project and one or more services based on the `description.yaml` content. Maximum size of the `description.yaml` file is 100 kB. @@ -882,8 +882,8 @@ When you have your `import.yaml` ready, use the `zcli project service-import` co Usage: zcli project service-import importYamlPath [flags] Flags: - -h, --help the project service import command. - --projectId string If you have access to more than one project, you must specify the project ID for which the + -h, --help Help for the project service import command. + -P, --project-id string If you have access to more than one project, you must specify the project ID for which the command is to be executed. ``` zCLI commands are interactive, when you press enter after `zcli project service-import importYamlPath`, you will be given a list of your projects to choose from. @@ -2265,10 +2265,10 @@ When you have your `description.yaml` ready, use the `zcli project project-impor Usage: zcli project project-import importYamlPath [flags] Flags: - -h, --help the project import command. - --orgId string If you have access to more than one organization, you must specify the org ID for which the + -h, --help Help for the project import command. + --org-id string If you have access to more than one organization, you must specify the org ID for which the project is to be created. - --workingDie string Sets a custom working directory. Default working directory is the current directory. (default "./") + --working-dir string Sets a custom working directory. Default working directory is the current directory. (default "./") ``` Zerops will create a project and one or more services based on the `description.yaml` content. Maximum size of the `description.yaml` file is 100 kB. @@ -2309,8 +2309,8 @@ When you have your `import.yaml` ready, use the `zcli project service-import` co Usage: zcli project service-import importYamlPath [flags] Flags: - -h, --help the project service import command. - --projectId string If you have access to more than one project, you must specify the project ID for which the + -h, --help Help for the project service import command. + -P, --project-id string If you have access to more than one project, you must specify the project ID for which the command is to be executed. ``` zCLI commands are interactive, when you press enter after `zcli project service-import importYamlPath`, you will be given a list of your projects to choose from. @@ -3553,10 +3553,10 @@ When you have your `description.yaml` ready, use the `zcli project project-impor Usage: zcli project project-import importYamlPath [flags] Flags: - -h, --help the project import command. - --orgId string If you have access to more than one organization, you must specify the org ID for which the + -h, --help Help for the project import command. + --org-id string If you have access to more than one organization, you must specify the org ID for which the project is to be created. - --workingDie string Sets a custom working directory. Default working directory is the current directory. (default "./") + --working-dir string Sets a custom working directory. Default working directory is the current directory. (default "./") ``` Zerops will create a project and one or more services based on the `description.yaml` content. Maximum size of the `description.yaml` file is 100 kB. @@ -3597,8 +3597,8 @@ When you have your `import.yaml` ready, use the `zcli project service-import` co Usage: zcli project service-import importYamlPath [flags] Flags: - -h, --help the project service import command. - --projectId string If you have access to more than one project, you must specify the project ID for which the + -h, --help Help for the project service import command. + -P, --project-id string If you have access to more than one project, you must specify the project ID for which the command is to be executed. ``` zCLI commands are interactive, when you press enter after `zcli project service-import importYamlPath`, you will be given a list of your projects to choose from. @@ -4616,10 +4616,10 @@ When you have your `description.yaml` ready, use the `zcli project project-impor Usage: zcli project project-import importYamlPath [flags] Flags: - -h, --help the project import command. - --orgId string If you have access to more than one organization, you must specify the org ID for which the + -h, --help Help for the project import command. + --org-id string If you have access to more than one organization, you must specify the org ID for which the project is to be created. - --workingDie string Sets a custom working directory. Default working directory is the current directory. (default "./") + --working-dir string Sets a custom working directory. Default working directory is the current directory. (default "./") ``` Zerops will create a project and one or more services based on the `description.yaml` content. Maximum size of the `description.yaml` file is 100 kB. @@ -4660,8 +4660,8 @@ When you have your `import.yaml` ready, use the `zcli project service-import` co Usage: zcli project service-import importYamlPath [flags] Flags: - -h, --help the project service import command. - --projectId string If you have access to more than one project, you must specify the project ID for which the + -h, --help Help for the project service import command. + -P, --project-id string If you have access to more than one project, you must specify the project ID for which the command is to be executed. ``` zCLI commands are interactive, when you press enter after `zcli project service-import importYamlPath`, you will be given a list of your projects to choose from. @@ -6649,21 +6649,21 @@ Start deploy-only pipelines using the [Zerops CLI](/references/cli). The `zcli s Usage: zcli service deploy pathToFileOrDir [flags] Flags: - --archiveFilePath string If set, zCLI creates a tar.gz archive with the application code in the required path relative + --archive-file-path string If set, zCLI creates a tar.gz archive with the application code in the required path relative to the working directory. By default, no archive is created. - --deployGitFolder Sets a custom path to the zerops.yaml file relative to the working directory. By default zCLI + --deploy-git-folder Sets a custom path to the zerops.yaml file relative to the working directory. By default zCLI looks for zerops.yaml in the working directory. -h, --help the service deploy command. - --projectId string If you have access to more than one project, you must specify the project ID for which the + --project-id 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 + --service-id string If you have access to more than one service, you must specify the service ID for which the command is to be executed. - --versionName string Adds a custom version name. Automatically filled if the VERSIONNAME environment variable exists. - --workingDir string Sets a custom working directory. Default working directory is the current directory. (default "./") - --zeropsYamlPath string Sets a custom path to the zerops.yaml file relative to the working directory. By default zCLI + --version-name string Adds a custom version name. Automatically filled if the VERSIONNAME environment variable exists. + --working-dir string Sets a custom working directory. Default working directory is the current directory. (default "./") + --zerops-yaml-path string Sets a custom path to the zerops.yaml file relative to the working directory. By default zCLI looks for zerops.yaml in the working directory. ``` -`pathToFileOrDir` defines paths to directories and/or files relative to the working directory. The working directory defaults to the current directory and can be changed using the `--workingDir` flag. +`pathToFileOrDir` defines paths to directories and/or files relative to the working directory. The working directory defaults to the current directory and can be changed using the `--working-dir` flag. Place `zerops.yaml` in the working directory. :::info You can modify the deploy pipeline anytime by updating the `zerops.yaml` in your working directory. @@ -9840,10 +9840,10 @@ When you have your `description.yaml` ready, use the `zcli project project-impor Usage: zcli project project-import importYamlPath [flags] Flags: - -h, --help the project import command. - --orgId string If you have access to more than one organization, you must specify the org ID for which the + -h, --help Help for the project import command. + --org-id string If you have access to more than one organization, you must specify the org ID for which the project is to be created. - --workingDie string Sets a custom working directory. Default working directory is the current directory. (default "./") + --working-dir string Sets a custom working directory. Default working directory is the current directory. (default "./") ``` Zerops will create a project and one or more services based on the `description.yaml` content. Maximum size of the `description.yaml` file is 100 kB. @@ -9884,8 +9884,8 @@ When you have your `import.yaml` ready, use the `zcli project service-import` co Usage: zcli project service-import importYamlPath [flags] Flags: - -h, --help the project service import command. - --projectId string If you have access to more than one project, you must specify the project ID for which the + -h, --help Help for the project service import command. + -P, --project-id string If you have access to more than one project, you must specify the project ID for which the command is to be executed. ``` zCLI commands are interactive, when you press enter after `zcli project service-import importYamlPath`, you will be given a list of your projects to choose from. @@ -10859,10 +10859,10 @@ When you have your `description.yaml` ready, use the `zcli project project-impor Usage: zcli project project-import importYamlPath [flags] Flags: - -h, --help the project import command. - --orgId string If you have access to more than one organization, you must specify the org ID for which the + -h, --help Help for the project import command. + --org-id string If you have access to more than one organization, you must specify the org ID for which the project is to be created. - --workingDie string Sets a custom working directory. Default working directory is the current directory. (default "./") + --working-dir string Sets a custom working directory. Default working directory is the current directory. (default "./") ``` Zerops will create a project and one or more services based on the `description.yaml` content. Maximum size of the `description.yaml` file is 100 kB. @@ -10903,8 +10903,8 @@ When you have your `import.yaml` ready, use the `zcli project service-import` co Usage: zcli project service-import importYamlPath [flags] Flags: - -h, --help the project service import command. - --projectId string If you have access to more than one project, you must specify the project ID for which the + -h, --help Help for the project service import command. + -P, --project-id string If you have access to more than one project, you must specify the project ID for which the command is to be executed. ``` zCLI commands are interactive, when you press enter after `zcli project service-import importYamlPath`, you will be given a list of your projects to choose from. @@ -12002,10 +12002,10 @@ When you have your `description.yaml` ready, use the `zcli project project-impor Usage: zcli project project-import importYamlPath [flags] Flags: - -h, --help the project import command. - --orgId string If you have access to more than one organization, you must specify the org ID for which the + -h, --help Help for the project import command. + --org-id string If you have access to more than one organization, you must specify the org ID for which the project is to be created. - --workingDie string Sets a custom working directory. Default working directory is the current directory. (default "./") + --working-dir string Sets a custom working directory. Default working directory is the current directory. (default "./") ``` Zerops will create a project and one or more services based on the `description.yaml` content. Maximum size of the `description.yaml` file is 100 kB. @@ -12046,8 +12046,8 @@ When you have your `import.yaml` ready, use the `zcli project service-import` co Usage: zcli project service-import importYamlPath [flags] Flags: - -h, --help the project service import command. - --projectId string If you have access to more than one project, you must specify the project ID for which the + -h, --help Help for the project service import command. + -P, --project-id string If you have access to more than one project, you must specify the project ID for which the command is to be executed. ``` zCLI commands are interactive, when you press enter after `zcli project service-import importYamlPath`, you will be given a list of your projects to choose from. @@ -12316,12 +12316,12 @@ zCLI is the Zerops command-line tool. To stop and start the KeyDB service via th 2. Run the `zcli service stop` command ```sh Usage: - zcli service stop [serviceIdOrName] [flags] + zcli service stop [service-id-or-name] [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 + --project-id 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 + --service-id 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 @@ -12333,9 +12333,9 @@ 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 + --project-id 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 + --service-id 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 @@ -12523,10 +12523,10 @@ When you have your `description.yaml` ready, use the `zcli project project-impor Usage: zcli project project-import importYamlPath [flags] Flags: - -h, --help the project import command. - --orgId string If you have access to more than one organization, you must specify the org ID for which the + -h, --help Help for the project import command. + --org-id string If you have access to more than one organization, you must specify the org ID for which the project is to be created. - --workingDie string Sets a custom working directory. Default working directory is the current directory. (default "./") + --working-dir string Sets a custom working directory. Default working directory is the current directory. (default "./") ``` Zerops will create a project and one or more services based on the `description.yaml` content. Maximum size of the `description.yaml` file is 100 kB. @@ -12554,8 +12554,8 @@ When you have your `import.yaml` ready, use the `zcli project service-import` co Usage: zcli project service-import importYamlPath [flags] Flags: - -h, --help the project service import command. - --projectId string If you have access to more than one project, you must specify the project ID for which the + -h, --help Help for the project service import command. + -P, --project-id string If you have access to more than one project, you must specify the project ID for which the command is to be executed. ``` zCLI commands are interactive, when you press enter after `zcli project service-import importYamlPath`, you will be given a list of your projects to choose from. @@ -12999,10 +12999,10 @@ When you have your `description.yaml` ready, use the `zcli project project-impor Usage: zcli project project-import importYamlPath [flags] Flags: - -h, --help the project import command. - --orgId string If you have access to more than one organization, you must specify the org ID for which the + -h, --help Help for the project import command. + --org-id string If you have access to more than one organization, you must specify the org ID for which the project is to be created. - --workingDie string Sets a custom working directory. Default working directory is the current directory. (default "./") + --working-dir string Sets a custom working directory. Default working directory is the current directory. (default "./") ``` Zerops will create a project and one or more services based on the `description.yaml` content. Maximum size of the `description.yaml` file is 100 kB. @@ -13033,8 +13033,8 @@ When you have your `import.yaml` ready, use the `zcli project service-import` co Usage: zcli project service-import importYamlPath [flags] Flags: - -h, --help the project service import command. - --projectId string If you have access to more than one project, you must specify the project ID for which the + -h, --help Help for the project service import command. + -P, --project-id string If you have access to more than one project, you must specify the project ID for which the command is to be executed. ``` zCLI commands are interactive, when you press enter after `zcli project service-import importYamlPath`, you will be given a list of your projects to choose from. @@ -14241,10 +14241,10 @@ When you have your `description.yaml` ready, use the `zcli project project-impor Usage: zcli project project-import importYamlPath [flags] Flags: - -h, --help the project import command. - --orgId string If you have access to more than one organization, you must specify the org ID for which the + -h, --help Help for the project import command. + --org-id string If you have access to more than one organization, you must specify the org ID for which the project is to be created. - --workingDie string Sets a custom working directory. Default working directory is the current directory. (default "./") + --working-dir string Sets a custom working directory. Default working directory is the current directory. (default "./") ``` Zerops will create a project and one or more services based on the `description.yaml` content. Maximum size of the `description.yaml` file is 100 kB. @@ -14285,8 +14285,8 @@ When you have your `import.yaml` ready, use the `zcli project service-import` co Usage: zcli project service-import importYamlPath [flags] Flags: - -h, --help the project service import command. - --projectId string If you have access to more than one project, you must specify the project ID for which the + -h, --help Help for the project service import command. + -P, --project-id string If you have access to more than one project, you must specify the project ID for which the command is to be executed. ``` zCLI commands are interactive, when you press enter after `zcli project service-import importYamlPath`, you will be given a list of your projects to choose from. @@ -15495,10 +15495,10 @@ When you have your `description.yaml` ready, use the `zcli project project-impor Usage: zcli project project-import importYamlPath [flags] Flags: - -h, --help the project import command. - --orgId string If you have access to more than one organization, you must specify the org ID for which the + -h, --help Help for the project import command. + --org-id string If you have access to more than one organization, you must specify the org ID for which the project is to be created. - --workingDie string Sets a custom working directory. Default working directory is the current directory. (default "./") + --working-dir string Sets a custom working directory. Default working directory is the current directory. (default "./") ``` Zerops will create a project and one or more services based on the `description.yaml` content. Maximum size of the `description.yaml` file is 100 kB. @@ -15539,8 +15539,8 @@ When you have your `import.yaml` ready, use the `zcli project service-import` co Usage: zcli project service-import importYamlPath [flags] Flags: - -h, --help the project service import command. - --projectId string If you have access to more than one project, you must specify the project ID for which the + -h, --help Help for the project service import command. + -P, --project-id string If you have access to more than one project, you must specify the project ID for which the command is to be executed. ``` zCLI commands are interactive, when you press enter after `zcli project service-import importYamlPath`, you will be given a list of your projects to choose from. @@ -15911,10 +15911,10 @@ When you have your `description.yaml` ready, use the `zcli project project-impor Usage: zcli project project-import importYamlPath [flags] Flags: - -h, --help the project import command. - --orgId string If you have access to more than one organization, you must specify the org ID for which the + -h, --help Help for the project import command. + --org-id string If you have access to more than one organization, you must specify the org ID for which the project is to be created. - --workingDie string Sets a custom working directory. Default working directory is the current directory. (default "./") + --working-dir string Sets a custom working directory. Default working directory is the current directory. (default "./") ``` Zerops will create a project and one or more services based on the `description.yaml` content. Maximum size of the `description.yaml` file is 100 kB. @@ -15944,8 +15944,8 @@ When you have your `import.yaml` ready, use the `zcli project service-import` co Usage: zcli project service-import importYamlPath [flags] Flags: - -h, --help the project service import command. - --projectId string If you have access to more than one project, you must specify the project ID for which the + -h, --help Help for the project service import command. + -P, --project-id string If you have access to more than one project, you must specify the project ID for which the command is to be executed. ``` zCLI commands are interactive, when you press enter after `zcli project service-import importYamlPath`, you will be given a list of your projects to choose from. @@ -16989,10 +16989,10 @@ When you have your `description.yaml` ready, use the `zcli project project-impor Usage: zcli project project-import importYamlPath [flags] Flags: - -h, --help the project import command. - --orgId string If you have access to more than one organization, you must specify the org ID for which the + -h, --help Help for the project import command. + --org-id string If you have access to more than one organization, you must specify the org ID for which the project is to be created. - --workingDie string Sets a custom working directory. Default working directory is the current directory. (default "./") + --working-dir string Sets a custom working directory. Default working directory is the current directory. (default "./") ``` Zerops will create a project and one or more services based on the `description.yaml` content. Maximum size of the `description.yaml` file is 100 kB. @@ -17033,8 +17033,8 @@ When you have your `import.yaml` ready, use the `zcli project service-import` co Usage: zcli project service-import importYamlPath [flags] Flags: - -h, --help the project service import command. - --projectId string If you have access to more than one project, you must specify the project ID for which the + -h, --help Help for the project service import command. + -P, --project-id string If you have access to more than one project, you must specify the project ID for which the command is to be executed. ``` zCLI commands are interactive, when you press enter after `zcli project service-import importYamlPath`, you will be given a list of your projects to choose from. @@ -17664,10 +17664,10 @@ When you have your `description.yaml` ready, use the `zcli project project-impor Usage: zcli project project-import importYamlPath [flags] Flags: - -h, --help the project import command. - --orgId string If you have access to more than one organization, you must specify the org ID for which the + -h, --help Help for the project import command. + --org-id string If you have access to more than one organization, you must specify the org ID for which the project will be created. - --workingDie string Sets a custom working directory. The default working directory is the current directory. (default "./") + --working-dir string Sets a custom working directory. The default working directory is the current directory. (default "./") ``` Zerops will create a project and one or more services based on the `description.yaml` content. The maximum size of the `description.yaml` file is 100 kB. @@ -17695,8 +17695,8 @@ When your `import.yaml` is ready, use the `zcli project service-import` command Usage: zcli project service-import importYamlPath [flags] Flags: - -h, --help the project service import command. - --projectId string If you have access to more than one project, you must specify the project ID for which the + -h, --help Help for the project service import command. + -P, --project-id string If you have access to more than one project, you must specify the project ID for which the command will be executed. ``` zCLI commands are interactive, when you press enter after `zcli project service-import importYamlPath`, you will be given a list of your projects to choose from. @@ -18779,10 +18779,10 @@ When you have your `description.yaml` ready, use the `zcli project project-impor Usage: zcli project project-import importYamlPath [flags] Flags: - -h, --help the project import command. - --orgId string If you have access to more than one organization, you must specify the org ID for which the + -h, --help Help for the project import command. + --org-id string If you have access to more than one organization, you must specify the org ID for which the project is to be created. - --workingDie string Sets a custom working directory. Default working directory is the current directory. (default "./") + --working-dir string Sets a custom working directory. Default working directory is the current directory. (default "./") ``` Zerops will create a project and one or more services based on the `description.yaml` content. Maximum size of the `description.yaml` file is 100 kB. @@ -18823,8 +18823,8 @@ When you have your `import.yaml` ready, use the `zcli project service-import` co Usage: zcli project service-import importYamlPath [flags] Flags: - -h, --help the project service import command. - --projectId string If you have access to more than one project, you must specify the project ID for which the + -h, --help Help for the project service import command. + -P, --project-id string If you have access to more than one project, you must specify the project ID for which the command is to be executed. ``` zCLI commands are interactive, when you press enter after `zcli project service-import importYamlPath`, you will be given a list of your projects to choose from. @@ -19157,12 +19157,12 @@ zcli logout ### vpn up Connects to the Zerops VPN. ```sh -zcli vpn up [projectId] [flags] +zcli vpn up [project-id] [flags] ``` **Flags:** - `--auto-disconnect` - Automatically disconnect from VPN if already connected - `--mtu int` - Set custom MTU value for Wireguard interface (default: 1420) -- `--projectId string` - Required when you have access to multiple projects +- `-P, --project-id string` - Required when you have access to multiple projects :::note You can set a default project ID for VPN connections in a `.zcli.yml` file or via the `ZEROPS_PROJECTID` environment variable. See the [Configuration](/references/cli/configuration) page for details. ::: @@ -19180,42 +19180,61 @@ Lists all projects you have access to. ```sh zcli project list ``` +### project create +Creates a new project for specified organization. +```sh +zcli project create [flags] +``` +**Flags:** +- `--env-isolation string` - Environment isolation rule [service, none] (default: "service") +- `--mode string` - Project mode [light, serious] (default: "light") +- `--name string` - Project name +- `--org-id string` - Organization ID to create project for +- `--out string` - Output format using Go template syntax +- `--ssh-isolation string` - SSH isolation rules (default: "vpn") +- `--tags strings` - Project tags (comma-separated list or repeated flag) ### project delete Deletes a project and all its services. ```sh -zcli project delete [projectId] [flags] +zcli project delete [project-id] [flags] ``` **Flags:** - `--confirm` - Skip confirmation prompts for destructive operations -- `--projectId string` - Required when you have access to multiple projects +- `-P, --project-id string` - Required when you have access to multiple projects +### project env +Displays environment variables for the current project scope. +```sh +zcli project env [flags] +``` +**Flags:** +- `--export` - Prepends export keyword to each env in output: 'export `{{.Key}}={{.Value}}`' +- `-P, --project-id string` - Required when you have access to multiple projects +- `--service string` - Service name, in which context the environment variables are output +- `--template string` - Output template (default: "`{{.Key}}={{.Value}}`") +- `--user-only` - Exclude all non user env variables ### project project-import Creates a new project with one or more services from a YAML definition. ```sh -zcli project project-import [flags] +zcli project project-import importYamlPath [flags] ``` **Flags:** -- `--orgId string` - Organization ID where the project should be created (required for multiple organizations) -- `--workingDir string` - Sets a custom working directory (default: "./") +- `--org-id string` - Organization ID where the project should be created (required for multiple organizations) +- `--working-dir string` - Sets a custom working directory (default: "./") ### project service-import Creates one or more services in an existing project from a YAML definition. ```sh -zcli project service-import [flags] +zcli project service-import importYamlPath [flags] ``` **Flags:** -- `--projectId string` - Required when you have access to multiple projects -### scope project -Sets the default project for commands that require a project ID. -```sh -zcli scope project [projectId] -``` -:::tip -Instead of using the `scope project` command, you can also set a default project ID in a `.zcli.yml` file or via the `ZEROPS_PROJECTID` environment variable. See the [Configuration](/references/cli/configuration) page for details. -::: -### scope reset -Resets the default project and service scope. +- `-P, --project-id string` - Required when you have access to multiple projects +### project scope +Sets or clears the default project scope for commands that require a project ID. ```sh -zcli scope reset +zcli project scope [project-id] [flags] ``` +**Flags:** +- `--clear` - Clear project scope +- `-P, --project-id string` - Required when you have access to multiple projects ## Service Operations ### service list Lists all services in a project. @@ -19223,64 +19242,83 @@ Lists all services in a project. zcli service list [flags] ``` **Flags:** -- `--projectId string` - Required when you have access to multiple projects +- `-P, --project-id string` - Required when you have access to multiple projects +### service create +Creates a new service for specified project. +```sh +zcli service create [flags] +``` +**Flags:** +- `--env strings` - Environment variables to be set as secrets (comma-separated or repeated flag) +- `--env-file string` - File with environment variables (max 1.0 MiB) +- `--env-isolation string` - Environment isolation rule [service, none] (default: "service") +- `--mode string` - Service mode [ha, non_ha] (default: "non_ha") +- `--name string` - Service name +- `--noop` - Creates service only if none with the same name exists +- `--out string` - Output format using Go template syntax +- `-P, --project-id string` - Required when you have access to multiple projects +- `--ssh-isolation string` - SSH isolation rules (default: "vpn") +- `--start-without-code` - Start service immediately without deploy +- `--working-dir string` - Sets custom working directory (default: "./") +- `--zerops-yaml-path string` - Sets custom path to zerops.yml file ### service push Builds your application in Zerops and deploys it. This is the recommended way to deploy your code. ```sh -zcli service push [serviceIdOrName] [flags] +zcli service push [service-id-or-name] [flags] ``` **Flags:** -- `--archiveFilePath string` - Creates a tar.gz archive with application code -- `-g, --deployGitFolder` - Include the .git folder in the upload -- `--disableLogs` - Disable logs during push -- `-v, --verbose` - Log additional debug data to the zCLI [debug log file](/references/cli/configuration#logging-configuration) -- `--projectId string` - Required when you have access to multiple projects -- `--serviceId string` - Required when you have access to multiple services +- `--archive-file-path string` - Creates a tar.gz archive with application code +- `-g, --deploy-git-folder` - Include the .git folder in the upload +- `--disable-logs` - Disable logs during push +- `--no-git` - Upload entire working directory as-is (cannot be combined with --workspace-state or --deploy-git-folder) +- `-P, --project-id string` - Required when you have access to multiple projects +- `-S, --service-id string` - Required when you have access to multiple services - `--setup string` - Choose setup to use from zerops.yml -- `--versionName string` - Adds a custom version name -- `--workingDir string` - Sets a custom working directory (default: "./") -- `-w, --workspaceState string` - Defines version of workspace to push: +- `-v, --verbose` - Log additional debug data to the zCLI [debug log file](/references/cli/configuration#logging-configuration) +- `--version-name string` - Adds a custom version name +- `--working-dir string` - Sets a custom working directory (default: "./") +- `-w, --workspace-state string` - Defines version of workspace to push: - `clean` - pushes the HEAD without local changes - `staged` - pushes only staged files - `all` - pushes all staged and unstaged files (default) -- `--zeropsYamlPath string` - Sets a custom path to the zerops.yml file +- `--zerops-yaml-path string` - Sets a custom path to the zerops.yml file :::tip You can also use `zcli push` as a shorthand for `zcli service push`. -To avoid specifying `--projectId` and `--serviceId` flags repeatedly, you can set default values in a `.zcli.yml` file or via environment variables. See the [Configuration](/references/cli/configuration) page for details. +To avoid specifying `--project-id` and `--service-id` flags repeatedly, you can set default values in a `.zcli.yml` file or via environment variables. See the [Configuration](/references/cli/configuration) page for details. ::: ### service deploy Deploys your application to Zerops. Similar to `push` but focuses on deployment only. ```sh -zcli service deploy [serviceIdOrName] +zcli service deploy [service-id-or-name] ``` **Flags:** Same as service push command. ### service start/stop Commands to start or stop a Zerops service. ```sh -zcli service start [serviceIdOrName] [flags] -zcli service stop [serviceIdOrName] [flags] +zcli service start [service-id-or-name] [flags] +zcli service stop [service-id-or-name] [flags] ``` **Flags for both commands:** -- `--projectId string` - Required when you have access to multiple projects -- `--serviceId string` - Required when you have access to multiple services +- `-P, --project-id string` - Required when you have access to multiple projects +- `-S, --service-id string` - Required when you have access to multiple services ### service delete Deletes a Zerops service. ```sh -zcli service delete [serviceIdOrName] [flags] +zcli service delete [service-id-or-name] [flags] ``` **Flags:** - `--confirm` - Skip confirmation prompts for destructive operations -- `--projectId string` - Required when you have access to multiple projects -- `--serviceId string` - Required when you have access to multiple services +- `-P, --project-id string` - Required when you have access to multiple projects +- `-S, --service-id string` - Required when you have access to multiple services ### service enable-subdomain Enables access to your service through a Zerops subdomain. ```sh -zcli service enable-subdomain [serviceIdOrName] [flags] +zcli service enable-subdomain [service-id-or-name] [flags] ``` **Flags:** -- `--projectId string` - Required when you have access to multiple projects -- `--serviceId string` - Required when you have access to multiple services +- `-P, --project-id string` - Required when you have access to multiple projects +- `-S, --service-id string` - Required when you have access to multiple services ### service log Gets service runtime or build logs to stdout. ```sh @@ -19288,14 +19326,14 @@ zcli service log [flags] ``` **Flags:** - `--follow` - Continuously poll for new log messages -- `--format ` - Log output format (FULL, SHORT, JSON, JSONSTREAM) -- `--formatTemplate ` - Custom log format -- `--limit ` - Number of recent log messages to return (1-1000, default: 100) -- `--messageType ` - Select APPLICATION or WEBSERVER log messages -- `--minimumSeverity ` - Filter by severity level -- `--projectId string` - Required when you have access to multiple projects -- `--serviceId string` - Required when you have access to multiple services -- `--showBuildLogs` - Show build logs instead of runtime logs +- `--format string` - Log output format (FULL, SHORT, JSON, JSONSTREAM) (default: "FULL") +- `--format-template string` - Custom log format +- `--limit int` - Number of recent log messages to return (1-1000, default: 100) +- `--message-type string` - Select APPLICATION or WEBSERVER log messages (default: "APPLICATION") +- `--minimum-severity string` - Filter by severity level +- `-P, --project-id string` - Required when you have access to multiple projects +- `-S, --service-id string` - Required when you have access to multiple services +- `--show-build-logs` - Show build logs instead of runtime logs ## Utility Commands ### env Displays global environment variables and their paths. @@ -21802,11 +21840,11 @@ zcli vpn up Select your project when prompted. ```bash Usage: - zcli vpn up [projectId] [flags] + zcli vpn up [project-id] [flags] Flags: --auto-disconnect Automatically disconnects existing VPN connections --help Display help for the vpn up command - --projectId string Project ID for command execution (required for multiple projects) + --project-id string Project ID for command execution (required for multiple projects) ``` To connect to a specific project without using the interactive mode, use the project ID from your Zerops dashboard: ```bash @@ -23078,10 +23116,10 @@ When you have your `description.yaml` ready, use the `zcli project project-impor Usage: zcli project project-import importYamlPath [flags] Flags: - -h, --help the project import command. - --orgId string If you have access to more than one organization, you must specify the org ID for which the + -h, --help Help for the project import command. + --org-id string If you have access to more than one organization, you must specify the org ID for which the project is to be created. - --workingDie string Sets a custom working directory. Default working directory is the current directory. (default "./") + --working-dir string Sets a custom working directory. Default working directory is the current directory. (default "./") ``` Zerops will create a project and one or more services based on the `description.yaml` content. Maximum size of the `description.yaml` file is 100 kB. @@ -23122,8 +23160,8 @@ When you have your `import.yaml` ready, use the `zcli project service-import` co Usage: zcli project service-import importYamlPath [flags] Flags: - -h, --help the project service import command. - --projectId string If you have access to more than one project, you must specify the project ID for which the + -h, --help Help for the project service import command. + -P, --project-id string If you have access to more than one project, you must specify the project ID for which the command is to be executed. ``` zCLI commands are interactive, when you press enter after `zcli project service-import importYamlPath`, you will be given a list of your projects to choose from. diff --git a/apps/docs/static/llms-small.txt b/apps/docs/static/llms-small.txt index bd35affb..63298638 100644 --- a/apps/docs/static/llms-small.txt +++ b/apps/docs/static/llms-small.txt @@ -838,10 +838,10 @@ When you have your `description.yaml` ready, use the `zcli project project-impor Usage: zcli project project-import importYamlPath [flags] Flags: - -h, --help the project import command. - --orgId string If you have access to more than one organization, you must specify the org ID for which the + -h, --help Help for the project import command. + --org-id string If you have access to more than one organization, you must specify the org ID for which the project is to be created. - --workingDie string Sets a custom working directory. Default working directory is the current directory. (default "./") + --working-dir string Sets a custom working directory. Default working directory is the current directory. (default "./") ``` Zerops will create a project and one or more services based on the `description.yaml` content. Maximum size of the `description.yaml` file is 100 kB. @@ -882,8 +882,8 @@ When you have your `import.yaml` ready, use the `zcli project service-import` co Usage: zcli project service-import importYamlPath [flags] Flags: - -h, --help the project service import command. - --projectId string If you have access to more than one project, you must specify the project ID for which the + -h, --help Help for the project service import command. + -P, --project-id string If you have access to more than one project, you must specify the project ID for which the command is to be executed. ``` zCLI commands are interactive, when you press enter after `zcli project service-import importYamlPath`, you will be given a list of your projects to choose from. @@ -2073,10 +2073,10 @@ When you have your `description.yaml` ready, use the `zcli project project-impor Usage: zcli project project-import importYamlPath [flags] Flags: - -h, --help the project import command. - --orgId string If you have access to more than one organization, you must specify the org ID for which the + -h, --help Help for the project import command. + --org-id string If you have access to more than one organization, you must specify the org ID for which the project is to be created. - --workingDie string Sets a custom working directory. Default working directory is the current directory. (default "./") + --working-dir string Sets a custom working directory. Default working directory is the current directory. (default "./") ``` Zerops will create a project and one or more services based on the `description.yaml` content. Maximum size of the `description.yaml` file is 100 kB. @@ -2117,8 +2117,8 @@ When you have your `import.yaml` ready, use the `zcli project service-import` co Usage: zcli project service-import importYamlPath [flags] Flags: - -h, --help the project service import command. - --projectId string If you have access to more than one project, you must specify the project ID for which the + -h, --help Help for the project service import command. + -P, --project-id string If you have access to more than one project, you must specify the project ID for which the command is to be executed. ``` zCLI commands are interactive, when you press enter after `zcli project service-import importYamlPath`, you will be given a list of your projects to choose from. @@ -3361,10 +3361,10 @@ When you have your `description.yaml` ready, use the `zcli project project-impor Usage: zcli project project-import importYamlPath [flags] Flags: - -h, --help the project import command. - --orgId string If you have access to more than one organization, you must specify the org ID for which the + -h, --help Help for the project import command. + --org-id string If you have access to more than one organization, you must specify the org ID for which the project is to be created. - --workingDie string Sets a custom working directory. Default working directory is the current directory. (default "./") + --working-dir string Sets a custom working directory. Default working directory is the current directory. (default "./") ``` Zerops will create a project and one or more services based on the `description.yaml` content. Maximum size of the `description.yaml` file is 100 kB. @@ -3405,8 +3405,8 @@ When you have your `import.yaml` ready, use the `zcli project service-import` co Usage: zcli project service-import importYamlPath [flags] Flags: - -h, --help the project service import command. - --projectId string If you have access to more than one project, you must specify the project ID for which the + -h, --help Help for the project service import command. + -P, --project-id string If you have access to more than one project, you must specify the project ID for which the command is to be executed. ``` zCLI commands are interactive, when you press enter after `zcli project service-import importYamlPath`, you will be given a list of your projects to choose from. @@ -4424,10 +4424,10 @@ When you have your `description.yaml` ready, use the `zcli project project-impor Usage: zcli project project-import importYamlPath [flags] Flags: - -h, --help the project import command. - --orgId string If you have access to more than one organization, you must specify the org ID for which the + -h, --help Help for the project import command. + --org-id string If you have access to more than one organization, you must specify the org ID for which the project is to be created. - --workingDie string Sets a custom working directory. Default working directory is the current directory. (default "./") + --working-dir string Sets a custom working directory. Default working directory is the current directory. (default "./") ``` Zerops will create a project and one or more services based on the `description.yaml` content. Maximum size of the `description.yaml` file is 100 kB. @@ -4468,8 +4468,8 @@ When you have your `import.yaml` ready, use the `zcli project service-import` co Usage: zcli project service-import importYamlPath [flags] Flags: - -h, --help the project service import command. - --projectId string If you have access to more than one project, you must specify the project ID for which the + -h, --help Help for the project service import command. + -P, --project-id string If you have access to more than one project, you must specify the project ID for which the command is to be executed. ``` zCLI commands are interactive, when you press enter after `zcli project service-import importYamlPath`, you will be given a list of your projects to choose from. @@ -6457,21 +6457,21 @@ Start deploy-only pipelines using the [Zerops CLI](/references/cli). The `zcli s Usage: zcli service deploy pathToFileOrDir [flags] Flags: - --archiveFilePath string If set, zCLI creates a tar.gz archive with the application code in the required path relative + --archive-file-path string If set, zCLI creates a tar.gz archive with the application code in the required path relative to the working directory. By default, no archive is created. - --deployGitFolder Sets a custom path to the zerops.yaml file relative to the working directory. By default zCLI + --deploy-git-folder Sets a custom path to the zerops.yaml file relative to the working directory. By default zCLI looks for zerops.yaml in the working directory. -h, --help the service deploy command. - --projectId string If you have access to more than one project, you must specify the project ID for which the + --project-id 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 + --service-id string If you have access to more than one service, you must specify the service ID for which the command is to be executed. - --versionName string Adds a custom version name. Automatically filled if the VERSIONNAME environment variable exists. - --workingDir string Sets a custom working directory. Default working directory is the current directory. (default "./") - --zeropsYamlPath string Sets a custom path to the zerops.yaml file relative to the working directory. By default zCLI + --version-name string Adds a custom version name. Automatically filled if the VERSIONNAME environment variable exists. + --working-dir string Sets a custom working directory. Default working directory is the current directory. (default "./") + --zerops-yaml-path string Sets a custom path to the zerops.yaml file relative to the working directory. By default zCLI looks for zerops.yaml in the working directory. ``` -`pathToFileOrDir` defines paths to directories and/or files relative to the working directory. The working directory defaults to the current directory and can be changed using the `--workingDir` flag. +`pathToFileOrDir` defines paths to directories and/or files relative to the working directory. The working directory defaults to the current directory and can be changed using the `--working-dir` flag. Place `zerops.yaml` in the working directory. :::info You can modify the deploy pipeline anytime by updating the `zerops.yaml` in your working directory. @@ -9648,10 +9648,10 @@ When you have your `description.yaml` ready, use the `zcli project project-impor Usage: zcli project project-import importYamlPath [flags] Flags: - -h, --help the project import command. - --orgId string If you have access to more than one organization, you must specify the org ID for which the + -h, --help Help for the project import command. + --org-id string If you have access to more than one organization, you must specify the org ID for which the project is to be created. - --workingDie string Sets a custom working directory. Default working directory is the current directory. (default "./") + --working-dir string Sets a custom working directory. Default working directory is the current directory. (default "./") ``` Zerops will create a project and one or more services based on the `description.yaml` content. Maximum size of the `description.yaml` file is 100 kB. @@ -9692,8 +9692,8 @@ When you have your `import.yaml` ready, use the `zcli project service-import` co Usage: zcli project service-import importYamlPath [flags] Flags: - -h, --help the project service import command. - --projectId string If you have access to more than one project, you must specify the project ID for which the + -h, --help Help for the project service import command. + -P, --project-id string If you have access to more than one project, you must specify the project ID for which the command is to be executed. ``` zCLI commands are interactive, when you press enter after `zcli project service-import importYamlPath`, you will be given a list of your projects to choose from. @@ -10667,10 +10667,10 @@ When you have your `description.yaml` ready, use the `zcli project project-impor Usage: zcli project project-import importYamlPath [flags] Flags: - -h, --help the project import command. - --orgId string If you have access to more than one organization, you must specify the org ID for which the + -h, --help Help for the project import command. + --org-id string If you have access to more than one organization, you must specify the org ID for which the project is to be created. - --workingDie string Sets a custom working directory. Default working directory is the current directory. (default "./") + --working-dir string Sets a custom working directory. Default working directory is the current directory. (default "./") ``` Zerops will create a project and one or more services based on the `description.yaml` content. Maximum size of the `description.yaml` file is 100 kB. @@ -10711,8 +10711,8 @@ When you have your `import.yaml` ready, use the `zcli project service-import` co Usage: zcli project service-import importYamlPath [flags] Flags: - -h, --help the project service import command. - --projectId string If you have access to more than one project, you must specify the project ID for which the + -h, --help Help for the project service import command. + -P, --project-id string If you have access to more than one project, you must specify the project ID for which the command is to be executed. ``` zCLI commands are interactive, when you press enter after `zcli project service-import importYamlPath`, you will be given a list of your projects to choose from. @@ -11764,10 +11764,10 @@ When you have your `description.yaml` ready, use the `zcli project project-impor Usage: zcli project project-import importYamlPath [flags] Flags: - -h, --help the project import command. - --orgId string If you have access to more than one organization, you must specify the org ID for which the + -h, --help Help for the project import command. + --org-id string If you have access to more than one organization, you must specify the org ID for which the project is to be created. - --workingDie string Sets a custom working directory. Default working directory is the current directory. (default "./") + --working-dir string Sets a custom working directory. Default working directory is the current directory. (default "./") ``` Zerops will create a project and one or more services based on the `description.yaml` content. Maximum size of the `description.yaml` file is 100 kB. @@ -11808,8 +11808,8 @@ When you have your `import.yaml` ready, use the `zcli project service-import` co Usage: zcli project service-import importYamlPath [flags] Flags: - -h, --help the project service import command. - --projectId string If you have access to more than one project, you must specify the project ID for which the + -h, --help Help for the project service import command. + -P, --project-id string If you have access to more than one project, you must specify the project ID for which the command is to be executed. ``` zCLI commands are interactive, when you press enter after `zcli project service-import importYamlPath`, you will be given a list of your projects to choose from. @@ -12078,12 +12078,12 @@ zCLI is the Zerops command-line tool. To stop and start the KeyDB service via th 2. Run the `zcli service stop` command ```sh Usage: - zcli service stop [serviceIdOrName] [flags] + zcli service stop [service-id-or-name] [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 + --project-id 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 + --service-id 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 @@ -12095,9 +12095,9 @@ 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 + --project-id 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 + --service-id 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 @@ -12285,10 +12285,10 @@ When you have your `description.yaml` ready, use the `zcli project project-impor Usage: zcli project project-import importYamlPath [flags] Flags: - -h, --help the project import command. - --orgId string If you have access to more than one organization, you must specify the org ID for which the + -h, --help Help for the project import command. + --org-id string If you have access to more than one organization, you must specify the org ID for which the project is to be created. - --workingDie string Sets a custom working directory. Default working directory is the current directory. (default "./") + --working-dir string Sets a custom working directory. Default working directory is the current directory. (default "./") ``` Zerops will create a project and one or more services based on the `description.yaml` content. Maximum size of the `description.yaml` file is 100 kB. @@ -12316,8 +12316,8 @@ When you have your `import.yaml` ready, use the `zcli project service-import` co Usage: zcli project service-import importYamlPath [flags] Flags: - -h, --help the project service import command. - --projectId string If you have access to more than one project, you must specify the project ID for which the + -h, --help Help for the project service import command. + -P, --project-id string If you have access to more than one project, you must specify the project ID for which the command is to be executed. ``` zCLI commands are interactive, when you press enter after `zcli project service-import importYamlPath`, you will be given a list of your projects to choose from. @@ -12761,10 +12761,10 @@ When you have your `description.yaml` ready, use the `zcli project project-impor Usage: zcli project project-import importYamlPath [flags] Flags: - -h, --help the project import command. - --orgId string If you have access to more than one organization, you must specify the org ID for which the + -h, --help Help for the project import command. + --org-id string If you have access to more than one organization, you must specify the org ID for which the project is to be created. - --workingDie string Sets a custom working directory. Default working directory is the current directory. (default "./") + --working-dir string Sets a custom working directory. Default working directory is the current directory. (default "./") ``` Zerops will create a project and one or more services based on the `description.yaml` content. Maximum size of the `description.yaml` file is 100 kB. @@ -12795,8 +12795,8 @@ When you have your `import.yaml` ready, use the `zcli project service-import` co Usage: zcli project service-import importYamlPath [flags] Flags: - -h, --help the project service import command. - --projectId string If you have access to more than one project, you must specify the project ID for which the + -h, --help Help for the project service import command. + -P, --project-id string If you have access to more than one project, you must specify the project ID for which the command is to be executed. ``` zCLI commands are interactive, when you press enter after `zcli project service-import importYamlPath`, you will be given a list of your projects to choose from. @@ -14003,10 +14003,10 @@ When you have your `description.yaml` ready, use the `zcli project project-impor Usage: zcli project project-import importYamlPath [flags] Flags: - -h, --help the project import command. - --orgId string If you have access to more than one organization, you must specify the org ID for which the + -h, --help Help for the project import command. + --org-id string If you have access to more than one organization, you must specify the org ID for which the project is to be created. - --workingDie string Sets a custom working directory. Default working directory is the current directory. (default "./") + --working-dir string Sets a custom working directory. Default working directory is the current directory. (default "./") ``` Zerops will create a project and one or more services based on the `description.yaml` content. Maximum size of the `description.yaml` file is 100 kB. @@ -14047,8 +14047,8 @@ When you have your `import.yaml` ready, use the `zcli project service-import` co Usage: zcli project service-import importYamlPath [flags] Flags: - -h, --help the project service import command. - --projectId string If you have access to more than one project, you must specify the project ID for which the + -h, --help Help for the project service import command. + -P, --project-id string If you have access to more than one project, you must specify the project ID for which the command is to be executed. ``` zCLI commands are interactive, when you press enter after `zcli project service-import importYamlPath`, you will be given a list of your projects to choose from. @@ -15257,10 +15257,10 @@ When you have your `description.yaml` ready, use the `zcli project project-impor Usage: zcli project project-import importYamlPath [flags] Flags: - -h, --help the project import command. - --orgId string If you have access to more than one organization, you must specify the org ID for which the + -h, --help Help for the project import command. + --org-id string If you have access to more than one organization, you must specify the org ID for which the project is to be created. - --workingDie string Sets a custom working directory. Default working directory is the current directory. (default "./") + --working-dir string Sets a custom working directory. Default working directory is the current directory. (default "./") ``` Zerops will create a project and one or more services based on the `description.yaml` content. Maximum size of the `description.yaml` file is 100 kB. @@ -15301,8 +15301,8 @@ When you have your `import.yaml` ready, use the `zcli project service-import` co Usage: zcli project service-import importYamlPath [flags] Flags: - -h, --help the project service import command. - --projectId string If you have access to more than one project, you must specify the project ID for which the + -h, --help Help for the project service import command. + -P, --project-id string If you have access to more than one project, you must specify the project ID for which the command is to be executed. ``` zCLI commands are interactive, when you press enter after `zcli project service-import importYamlPath`, you will be given a list of your projects to choose from. @@ -15673,10 +15673,10 @@ When you have your `description.yaml` ready, use the `zcli project project-impor Usage: zcli project project-import importYamlPath [flags] Flags: - -h, --help the project import command. - --orgId string If you have access to more than one organization, you must specify the org ID for which the + -h, --help Help for the project import command. + --org-id string If you have access to more than one organization, you must specify the org ID for which the project is to be created. - --workingDie string Sets a custom working directory. Default working directory is the current directory. (default "./") + --working-dir string Sets a custom working directory. Default working directory is the current directory. (default "./") ``` Zerops will create a project and one or more services based on the `description.yaml` content. Maximum size of the `description.yaml` file is 100 kB. @@ -15706,8 +15706,8 @@ When you have your `import.yaml` ready, use the `zcli project service-import` co Usage: zcli project service-import importYamlPath [flags] Flags: - -h, --help the project service import command. - --projectId string If you have access to more than one project, you must specify the project ID for which the + -h, --help Help for the project service import command. + -P, --project-id string If you have access to more than one project, you must specify the project ID for which the command is to be executed. ``` zCLI commands are interactive, when you press enter after `zcli project service-import importYamlPath`, you will be given a list of your projects to choose from. @@ -16751,10 +16751,10 @@ When you have your `description.yaml` ready, use the `zcli project project-impor Usage: zcli project project-import importYamlPath [flags] Flags: - -h, --help the project import command. - --orgId string If you have access to more than one organization, you must specify the org ID for which the + -h, --help Help for the project import command. + --org-id string If you have access to more than one organization, you must specify the org ID for which the project is to be created. - --workingDie string Sets a custom working directory. Default working directory is the current directory. (default "./") + --working-dir string Sets a custom working directory. Default working directory is the current directory. (default "./") ``` Zerops will create a project and one or more services based on the `description.yaml` content. Maximum size of the `description.yaml` file is 100 kB. @@ -16795,8 +16795,8 @@ When you have your `import.yaml` ready, use the `zcli project service-import` co Usage: zcli project service-import importYamlPath [flags] Flags: - -h, --help the project service import command. - --projectId string If you have access to more than one project, you must specify the project ID for which the + -h, --help Help for the project service import command. + -P, --project-id string If you have access to more than one project, you must specify the project ID for which the command is to be executed. ``` zCLI commands are interactive, when you press enter after `zcli project service-import importYamlPath`, you will be given a list of your projects to choose from. @@ -17426,10 +17426,10 @@ When you have your `description.yaml` ready, use the `zcli project project-impor Usage: zcli project project-import importYamlPath [flags] Flags: - -h, --help the project import command. - --orgId string If you have access to more than one organization, you must specify the org ID for which the + -h, --help Help for the project import command. + --org-id string If you have access to more than one organization, you must specify the org ID for which the project will be created. - --workingDie string Sets a custom working directory. The default working directory is the current directory. (default "./") + --working-dir string Sets a custom working directory. The default working directory is the current directory. (default "./") ``` Zerops will create a project and one or more services based on the `description.yaml` content. The maximum size of the `description.yaml` file is 100 kB. @@ -17457,8 +17457,8 @@ When your `import.yaml` is ready, use the `zcli project service-import` command Usage: zcli project service-import importYamlPath [flags] Flags: - -h, --help the project service import command. - --projectId string If you have access to more than one project, you must specify the project ID for which the + -h, --help Help for the project service import command. + -P, --project-id string If you have access to more than one project, you must specify the project ID for which the command will be executed. ``` zCLI commands are interactive, when you press enter after `zcli project service-import importYamlPath`, you will be given a list of your projects to choose from. @@ -18541,10 +18541,10 @@ When you have your `description.yaml` ready, use the `zcli project project-impor Usage: zcli project project-import importYamlPath [flags] Flags: - -h, --help the project import command. - --orgId string If you have access to more than one organization, you must specify the org ID for which the + -h, --help Help for the project import command. + --org-id string If you have access to more than one organization, you must specify the org ID for which the project is to be created. - --workingDie string Sets a custom working directory. Default working directory is the current directory. (default "./") + --working-dir string Sets a custom working directory. Default working directory is the current directory. (default "./") ``` Zerops will create a project and one or more services based on the `description.yaml` content. Maximum size of the `description.yaml` file is 100 kB. @@ -18585,8 +18585,8 @@ When you have your `import.yaml` ready, use the `zcli project service-import` co Usage: zcli project service-import importYamlPath [flags] Flags: - -h, --help the project service import command. - --projectId string If you have access to more than one project, you must specify the project ID for which the + -h, --help Help for the project service import command. + -P, --project-id string If you have access to more than one project, you must specify the project ID for which the command is to be executed. ``` zCLI commands are interactive, when you press enter after `zcli project service-import importYamlPath`, you will be given a list of your projects to choose from. @@ -19616,10 +19616,10 @@ When you have your `description.yaml` ready, use the `zcli project project-impor Usage: zcli project project-import importYamlPath [flags] Flags: - -h, --help the project import command. - --orgId string If you have access to more than one organization, you must specify the org ID for which the + -h, --help Help for the project import command. + --org-id string If you have access to more than one organization, you must specify the org ID for which the project is to be created. - --workingDie string Sets a custom working directory. Default working directory is the current directory. (default "./") + --working-dir string Sets a custom working directory. Default working directory is the current directory. (default "./") ``` Zerops will create a project and one or more services based on the `description.yaml` content. Maximum size of the `description.yaml` file is 100 kB. @@ -19660,8 +19660,8 @@ When you have your `import.yaml` ready, use the `zcli project service-import` co Usage: zcli project service-import importYamlPath [flags] Flags: - -h, --help the project service import command. - --projectId string If you have access to more than one project, you must specify the project ID for which the + -h, --help Help for the project service import command. + -P, --project-id string If you have access to more than one project, you must specify the project ID for which the command is to be executed. ``` zCLI commands are interactive, when you press enter after `zcli project service-import importYamlPath`, you will be given a list of your projects to choose from.