Skip to content
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
35 changes: 21 additions & 14 deletions apps/docs/content/references/cli/commands.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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

Expand Down
Loading