> ## Documentation Index
> Fetch the complete documentation index at: https://docs.glam.systems/llms.txt
> Use this file to discover all available pages before exploring further.

# General Commands

### View Environment Setup

```bash theme={null}
glam-cli env
```

### Set Active GLAM Product

```bash theme={null}
glam-cli set <state>
```

### View a GLAM Product

* `--compact`: if set the output will be a compact json
* `state`: if not set the current active GLAM product will be used

```bash theme={null}
glam-cli view [state] [--compact]
```

### List Products

* By default only products the connected wallet has access to (either as owner or delegate) will be listed
* `--owner-only`: if set only products owned by the wallet will be listed
* `--all`: if set all products will be listed

```bash theme={null}
glam-cli list [--owner-only] [--all]
```

### Create a New Product

* See the `templates/` [<u>directory</u>](https://github.com/glamsystems/glam-cli/tree/main/templates) for available templates

```bash theme={null}
glam-cli create <path-to-template.json>
```

### Close a Product

Only the owner can close the product. Once closed rents of accounts will be refunded to the connected wallet.

* `state`: if not set the current active GLAM product will be used
* `--yes`: if set, no confirmation prompt will be shown

```bash theme={null}
glam-cli close [state] [--yes]
```
