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

# toloka dataset fields

> Print field declarations inferred from uploaded rows, or add dataset fields from them.

## Usage

```bash theme={null}
toloka dataset fields [options] [command]
```

`toloka dataset fields <name>` is shorthand for [`toloka dataset fields declarations <name>`](https://docs.platform.toloka.ai/docs/cli/reference/dataset/fields/declarations).

## Inherited options

**-v, --version** `boolean`

Output the current version.

**--source-root \<directory>** `string`

Project root; otherwise search the working directory and parents; init and report use only the working directory.

**--api-key \<key>** `string`

API key override; login stores the key it verifies.

Environment fallback: [`TOLOKA_SCOPED_TOKEN`](https://docs.platform.toloka.ai/docs/cli/reference#environment-variables), [`TOLOKA_API_KEY`](https://docs.platform.toloka.ai/docs/cli/reference#environment-variables).

**--base-url \<url>** `string`

Platform base URL override; login saves the selected URL.

Environment fallback: [`TOLOKA_BASE_URL`](https://docs.platform.toloka.ai/docs/cli/reference#environment-variables).

**--project-id \<id>** `string`

Target project; overrides toloka.json.

Environment fallback: [`TOLOKA_PROJECT_ID`](https://docs.platform.toloka.ai/docs/cli/reference#environment-variables).

## Subcommands

| Command | Summary |
| - | - |
| [`toloka dataset fields declarations`](https://docs.platform.toloka.ai/docs/cli/reference/dataset/fields/declarations) | Print field declarations inferred from uploaded rows. |
| [`toloka dataset fields add`](https://docs.platform.toloka.ai/docs/cli/reference/dataset/fields/add) | Add dataset fields from fields of the uploaded rows, so filters, `--balance-by` and split columns can use their values; uploads after this fill them too. |

See the [CLI guide](https://docs.platform.toloka.ai/docs/cli.md#manage-shared-datasets) for the workflow, and [environment variables and exit codes](https://docs.platform.toloka.ai/docs/cli/reference.md#environment-variables) for shared behavior.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.