Commands Reference¶
This page documents every ipto command grouped by resource. All commands support the global flags listed at the bottom of this page.
Auth Commands¶
ipto login¶
Authenticate with the IPTO API.
| Flag | Type | Description |
|---|---|---|
--token | string | Authenticate with an existing session token. |
--api-key | string | Authenticate with an API key (non-interactive). |
Example
ipto logout¶
Clear stored credentials for the current profile.
ipto whoami¶
Display the currently authenticated user, tenant, and role. Equivalent to GET /v1/me.
Example
$ ipto whoami
User: [email protected]
Tenant: Acme Corp (t_01JQ3N...)
Role: admin
$ ipto whoami --output json
{
"user_id": "u_01JQ3N...",
"email": "[email protected]",
"tenant_id": "t_01JQ3N...",
"tenant_name": "Acme Corp",
"role": "admin"
}
Dataset Commands¶
ipto datasets create¶
Create a new dataset.
| Flag | Type | Default | Description |
|---|---|---|---|
--name | string | required | Human-readable dataset name. |
--description | string | "" | Short description of the dataset. |
--modality | string | document | Data modality: document, image, video, audio, mixed. |
--monetization | string | open | Monetization model: open, premium, outcome_share. |
--pricing | string | fixed | Pricing strategy: fixed, time_decay, demand_curve. |
--visibility | string | private | Visibility: private, listed, restricted. |
Example
ipto datasets list¶
List all datasets in the current tenant.
Example
ipto datasets get¶
Retrieve details for a single dataset.
ipto datasets update¶
Update a dataset's metadata or status.
| Flag | Type | Description |
|---|---|---|
--name | string | New dataset name. |
--status | string | New status: draft, ingesting, active, paused. |
ipto datasets delete¶
Permanently delete a dataset and all its objects.
| Flag | Type | Description |
|---|---|---|
--confirm | bool | Skip the interactive confirmation prompt. |
Warning
This action is irreversible. All objects and index data in the dataset will be permanently removed.
Object Commands¶
ipto objects upload¶
Upload one or more files to a dataset. The CLI transparently handles the three-step presigned flow (request URL, PUT file, confirm).
# Single file
ipto objects upload <dataset_id> <file_path> [--content-type <mime>]
# Bulk upload (directory)
ipto objects upload <dataset_id> <directory/> [--recursive]
| Flag | Type | Description |
|---|---|---|
--content-type | string | Override the MIME type (auto-detected by default). |
--recursive | bool | Recursively upload all files in subdirectories. |
Example
ipto objects list¶
List all objects in a dataset.
Example
ipto objects get¶
Retrieve metadata for a single object.
ipto objects download¶
Download an object to the local filesystem. The CLI fetches a presigned URL and streams the file.
| Flag | Type | Description |
|---|---|---|
--output | string | Local file path. Defaults to the original filename in the current directory. |
ipto objects delete¶
Delete an object from a dataset.
| Flag | Type | Description |
|---|---|---|
--confirm | bool | Skip the interactive confirmation prompt. |
Search Commands¶
ipto search¶
Search across one or more datasets.
| Flag | Type | Default | Description |
|---|---|---|---|
--datasets | string | all | Comma-separated dataset IDs to scope the search. |
--mode | string | auto | Search mode: lexical, dense, hybrid, auto. |
--limit | int | 10 | Maximum number of results. |
--filter-mime | string | all | Comma-separated MIME types to include (e.g., application/pdf,text/plain). |
--output | string | auto | Output format: json, table. |
--stdin | bool | false | Read the query from stdin instead of the positional argument. |
Example: interactive
API Key Commands¶
ipto keys create¶
Create a new scoped API key.
| Flag | Type | Default | Description |
|---|---|---|---|
--name | string | required | Human-readable key name. |
--scopes | string | required | Comma-separated scopes (e.g., search,datasets.read). |
--access-mode | string | all_available | all_available or allow_list. |
Example
ipto keys list¶
List all API keys for the current tenant.
ipto keys revoke¶
Revoke an API key. The key becomes unusable immediately.
| Flag | Type | Description |
|---|---|---|
--confirm | bool | Skip the interactive confirmation prompt. |
ipto keys grant¶
Grant an API key access to a specific dataset (when the key uses allow_list access mode).
| Flag | Type | Description |
|---|---|---|
--dataset | string | Dataset ID to grant access to. |
ipto keys revoke-grant¶
Remove a dataset grant from an API key.
| Flag | Type | Description |
|---|---|---|
--grant | string | Grant ID to revoke. |
Admin Commands¶
ipto admin review list¶
List objects pending admin review.
ipto admin review approve¶
Approve a pending object.
ipto admin review reject¶
Reject a pending object with a reason.
| Flag | Type | Description |
|---|---|---|
--reason | string | Human-readable rejection reason (required). |
Utility Commands¶
ipto config show¶
Print the current resolved configuration (merging file, environment variables, and flags).
ipto config set¶
Update a single configuration value in ~/.ipto/config.toml.
ipto completion¶
Generate shell completion scripts.
Supported shells: bash, zsh, fish.
Global Flags¶
These flags are available on every command.
| Flag | Type | Default | Description |
|---|---|---|---|
--profile <name> | string | config default | Named profile to use from ~/.ipto/config.toml. |
--output json\|table\|yaml | string | auto | Output format. Defaults to table in a TTY, json otherwise. |
--api-key <key> | string | Override the API key for this invocation. | |
--api-url <url> | string | Override the API base URL for this invocation. | |
--quiet | bool | false | Suppress all non-error output. |
--verbose | bool | false | Enable verbose/debug logging. |
--no-color | bool | false | Disable colored output. |
--version | bool | Print the CLI version and exit. | |
--help | bool | Print help for the current command and exit. |