Skip to content

Add the CLI samples of the Management API reference - #98

Merged
curquiza merged 1 commit into
mainfrom
management-api-code-samples
Nov 23, 2026
Merged

curquiza merged 1 commit into
mainfrom
management-api-code-samples

Conversation

@curquiza

@curquiza curquiza commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

What

Add the meili samples of the Management API reference of the documentation.

The documentation now shows a CLI sample next to the cURL sample of each Management API route (meilisearch/documentation#3694). This pull request adds a sample for the 16 routes that a command covers: organization, team and project (list, view, add, update, delete), region list and resource list. The keys are the keys of the documentation, which start with management_.

Rule 19 of CLAUDE.md and the add-command skill now say that a management sample has no connection flag: it uses the session of meili auth login.

Checks

  • pnpm lint, pnpm typecheck, pnpm test pass locally. test/contract/docs.test.ts checks that every new sample runs a command and flags that exist.
  • No changeset: the samples file and the guides are not part of the package.
  • The routes without a command (team members, master key, plan, version, usage, cost, /me, Meilisearch versions) have no sample.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Documentation
    • Added CLI examples for managing organizations, teams, and projects, and for listing regions and resources.
    • Added examples for viewing individual organizations, teams, and projects, as well as filtering teams, projects, and resources by related entities. Destructive examples include an explicit confirmation flag.
    • Clarified the authentication options and key format used in Meilisearch and Management API command examples.

The documentation now shows the CLI sample next to the cURL sample of each Management API route. Add a sample for each route a command covers, under the key of the documentation.
@coderabbitai

coderabbitai Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The pull request adds Meilisearch CLI examples for organization, team, project, region, and resource operations. It also updates guidance for authoring samples and for connecting Meilisearch and Management API commands.

Changes: Management API samples

Layer / File(s) Summary
Sample authoring and connection guidance
.claude/skills/add-command/SKILL.md, CLAUDE.md
The authoring instructions require a management_ key prefix for Management API commands. Rule 19 distinguishes Management API login-session authentication from Meilisearch project connection flags.
Management API command examples
.code-samples.meilisearch.yaml
Adds examples to list, view, create, update, and delete organizations, teams, and projects. Delete examples use --yes. Adds commands to list regions and resources for a region.

Estimated code review effort: 2 (Simple) | ~10 minutes

Possibly related PRs

  • meilisearch/cli#90: Adds the sample file and authoring guidance that this pull request extends.
  • meilisearch/cli#42: Defines the meili auth login connection behavior referenced by the updated Management API sample guidance.
  • meilisearch/cli#70: Defines the resource-first command grammar used by the added examples.
Merge Risk: Minimal · up to b8765

This change adds CLI samples for Management API commands and updates the authoring guidance. It does not alter runtime behavior, so merge risk is minimal.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title "Add the CLI samples of the Management API reference" matches the main change: the PR adds CLI code samples for Management API routes covered by existing commands (organization, team, projec…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "Add the CLI samples of the Management API reference" matches the main change: the PR adds CLI code samples for Management API routes covered by existing commands (organization, team, project, region list, resource list). It is specific enough for a teammate scanning history to understand the primary change. Some detail (the 16 routes, the management_ key convention, CLAUDE.md rule updates) is omitted, which is acceptable.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Essentials
  • Run ID: 1bd086cc-cfc0-474d-ab9c-efac959a2b75
Commits

Reviewing files that changed from the base of the PR and between 73fda5d and b87655d.

Files selected for processing: 3

  • .claude/skills/add-command/SKILL.md
  • .code-samples.meilisearch.yaml
  • CLAUDE.md

Included review availability: This review used your included allowance. 0 included reviews remain after this review. Your included PR review attempts over the past 7 days set your current allowance at 4 reviews per hour.

@curquiza
curquiza marked this pull request as ready for review November 23, 2026 20:55
@curquiza
curquiza merged commit f6f9a54 into main Nov 23, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant