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

# columns

> List all columns for a specified table within a Trino catalog and schema.

The `columns` command lists all columns in a specific table and schema.

```bash theme={null}
nx1 columns \
  --catalog <catalog_name> \
  --schema <schema_name> \
  --table <table_name>
```

<Accordion title="Options">
  * `--catalog` `string` **required**: Name of the Trino catalog.
  * `--schema` `string` **required**: Name of the schema where the table resides.
  * `--table` `string` **required**: Name of the table to list columns for.
</Accordion>

<Accordion title="Global options">
  * `--api-key` `string` **optional**: API key or the `NX1_API_KEY` variable.
  * `--config-file` `string` **optional**: YAML config file.
  * `--help` `-h` **optional**: Shows help messages and exit.
  * `--host` `string` **optional**: API host.
  * `--no-verify-ssl` **optional**: Disables SSL verification.
  * `--output` `-o` **optional**: Output format. Allowed values: `json`, `yaml`, or `table`.
  * `--profile` `-p` `string` **optional**: Profile name from `~/.nx1/profiles`.
  * `--timeout` `integer` **optional**: Requests when to timeout. Default is `30`.
  * `--verbose` `-v` **optional**: Verbose output.
</Accordion>
