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
@@ -132,7 +132,7 @@ Choosing the right synonym type matters for search quality:
132
132
133
133
## Key Conventions
134
134
135
-
1.**Always use non-interactive mode.**Every command that writes, deletes, or modifies data needs `-y` (or `--confirm`) to skip confirmation prompts. This includes `objects import`, `objects delete`, `objects update`, `indices delete/clear/copy/move`, `rules import/delete`, `synonyms import/delete`, and `apikeys delete`. Without `-y`, the CLI will hang waiting for user input.
135
+
1.**Always use non-interactive mode.**Destructive commands need `-y` (or `--confirm`) to skip confirmation prompts. This includes `objects delete`, `indices delete/clear/copy/move`, `rules import/delete`, `synonyms delete`, and `apikeys delete`. Without `-y`, the CLI will hang waiting for user input. Note: `objects import`, `objects update`, and `synonyms import` do **not** have a `-y` flag — they run non-interactively by default.
136
136
2.**ndjson format.**`objects browse`, `objects import`, `rules browse/import`, and `synonyms browse/import` use newline-delimited JSON (one JSON object per line), **not** JSON arrays.
137
137
3.**Profile flag.** Use `-p <profile>` to target a non-default profile. Omit it to use the default.
138
138
4.**Credential precedence.** Environment variables override all other configuration. The resolution order is: **env vars** > **CLI flags** (`--application-id`, `--api-key`) > **profile config file** > **default profile**. Supported env vars: `ALGOLIA_APPLICATION_ID`, `ALGOLIA_API_KEY`, `ALGOLIA_ADMIN_API_KEY`, `ALGOLIA_SEARCH_HOSTS`, `ALGOLIA_CRAWLER_USER_ID`, `ALGOLIA_CRAWLER_API_KEY`. If env vars are set, `--profile`/`-p` is ignored for those credentials.
@@ -145,7 +145,7 @@ Choosing the right synonym type matters for search quality:
145
145
### Migrate records between indices (with field filtering)
|Includes `-y`flag on write commands | FAIL|FAIL| PASS |
29
+
|Does NOT use `-y` on `objects import`/`settings set` (unsupported) | PASS|PASS| PASS |
30
30
| Uses `-w` flag to sequence import before settings | FAIL | PASS | PASS |
31
31
32
-
**Key finding:** Without the skill, Claude exported all fields and filtered with `jq` instead of using `--attributesToRetrieve`. It also used intermediate files instead of piping. The v1→v2 improvement fixed the missing `-y`flag by adding it to the quick reference tables.
32
+
**Key finding:** Without the skill, Claude exported all fields and filtered with `jq` instead of using `--attributesToRetrieve`. It also used intermediate files instead of piping. Note: `objects import` and `settings set` do not support `-y`— they run non-interactively by default.
33
33
34
34
### Eval 2: Synonyms and Rules
35
35
@@ -66,7 +66,7 @@ The skill was evaluated across 3 realistic user scenarios, comparing **with-skil
66
66
The biggest areas where the skill outperforms general knowledge:
67
67
68
68
1.**ndjson format awareness** — Knowing which commands use newline-delimited JSON vs standard JSON
69
-
2.**Non-interactive flags** — Consistently using `-y`to prevent CLI hangs
69
+
2.**Non-interactive flags** — Knowing which commands need `-y`(destructive ops like `delete`, `clear`, `copy`, `move`, `rules import`) and which don't (`objects import`, `objects update`, `synonyms import`)
70
70
3.**Piping patterns** — Using `-F -` for stdin instead of intermediate files
71
71
4.**Synonym type selection** — Choosing `oneWaySynonym` vs `synonym` based on user intent
72
72
5.**Correct CLI commands** — Preventing hallucinated commands like `algolia rules save --rule`
@@ -86,7 +86,7 @@ Low recall is a systemic limitation — Claude is confident enough in its Algoli
86
86
87
87
## Improvements Made (v1 → v2)
88
88
89
-
1.**Added`-y` flag**to all write commands in quick reference tables
89
+
1.**Corrected`-y` flag usage**— only on commands that actually support it (destructive operations), removed from `objects import`/`objects update`
90
90
2.**New Synonym Type Guide** with decision rules for `synonym` vs `oneWaySynonym`
91
91
3.**Expanded non-interactive convention** listing every command that needs `-y`
92
92
4.**New Common Workflows section** (migrate, backup, restore patterns)
0 commit comments