feat: update CLI code base to use latest major version of the Go API client by kai687 · Pull Request #178 · algolia/cli

added 30 commits

February 13, 2025 23:15
Adds devbox for easy environment management.
In combination with `direnv`, the env is started automatically.
Without `direnv`, just do `devbox shell`.
Running Make as a task runner is phony.
A Taskfile is better suited for this.
Copying the binary into the Docker container doesn't work
if the host CPU architecture is different (like an M1 mac).
Since it's quick to build, we can just build the CLI
inside Docker.
This commit also re-enables support for the `--wait` flag,
which was commented out.
This commit gets rid of some custom validation code.
We don't have to validate the multiple-batch request body
in the CLI, since that is done in the v4 API client now.
This commit also adds support for the 'delete index' and 'clear objects'
actions.

@kai687

@kai687

@kai687

@kai687

@kai687

@kai687

@kai687

@kai687

@kai687

c, new,n for create and l for list

@kai687

Now that all commands are migrated, we can rename the v4IndexNames function

@kai687

fix: add support for search_hosts
All files that aren't part of actual commands

@kai687

@kai687

@kai687

@kai687

@kai687

@kai687

@kai687

feat: update code base to use v4 of the Go API client

@kai687 kai687 marked this pull request as ready for review

March 14, 2025 13:30

dylantientcheu

dylantientcheu