You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**Note**: `--consistency_level` values must be **lowercase**: `one`, `quorum`, `all` (not `ONE`, `QUORUM`, `ALL`).
185
185
186
+
**Alias support**: The `--collection` flag accepts collection aliases in all data commands. If the name isn't a direct collection, the CLI checks the alias list automatically.
187
+
186
188
See [references/data.md](references/data.md) and [references/search.md](references/search.md).
-`--include`, `--exclude` -- Filter which collections to restore
46
47
-`--wait` -- Wait for completion
48
+
-`--override-alias` -- Override alias conflicts during restore. Use when the backup contains a collection with an alias that differs from the current cluster state (e.g., the backup had alias `Movies` pointing to `Movies_v1`, but the cluster now has `Movies` pointing to `Movies_v2`). Without this flag, the restore will fail due to the alias conflict.
3.**For multi-tenant data ingestion:** tenants must be in `hot`/`active` state
51
51
4.**For vectorizer-based ingestion (non-randomize):** the collection uses a built-in dataset; vectorizer API keys may be needed
52
52
53
+
## Using Aliases
54
+
55
+
The `--collection` flag accepts aliases in all data commands (`create data`, `query data`, `update data`, `delete data`). If the given name doesn't match a collection directly, the CLI checks the alias list and resolves it transparently.
56
+
57
+
```bash
58
+
# Create an alias, then use it for data operations
59
+
weaviate-cli create alias MyAlias Movies --json
60
+
weaviate-cli create data --collection MyAlias --limit 100 --randomize --json
61
+
weaviate-cli query data --collection MyAlias --search_type fetch --limit 10 --json
62
+
weaviate-cli update data --collection MyAlias --limit 50 --randomize --json
63
+
weaviate-cli delete data --collection MyAlias --limit 50 --json
64
+
```
65
+
53
66
## Notes
54
67
55
68
-`--randomize` generates synthetic data with random vectors -- useful for testing
0 commit comments