Skip to content

feat(profile): deprecate profile commands and --profile flag#237

Merged
LorrisSaintGenez merged 5 commits into
feat/profile-deprfrom
feat/deprecation
Jun 11, 2026
Merged

feat(profile): deprecate profile commands and --profile flag#237
LorrisSaintGenez merged 5 commits into
feat/profile-deprfrom
feat/deprecation

Conversation

@LorrisSaintGenez

@LorrisSaintGenez LorrisSaintGenez commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

What

  • The --profile flag is deprecated: still visible in help with a (DEPRECATED: ...) note, and prints a warning when used (pointing to --application-id or algolia application select)
  • The --application-id and --api-key global flag descriptions now document their defaults (current application / its stored key)
  • The profile commands (add, list, remove, setdefault) are marked [Deprecated] in help (kept visible) and print a stderr warning pointing to their replacement (auth login, application list, application select); profile remove has no new-model equivalent yet
  • The auth failure hint now says Please run 'algolia auth login' to get started. instead of pointing to profile add
  • All remaining user-facing help texts, prompts, and error messages were reworded from "CLI profile" to the current-application model (auth login/signup, application select/create/list/update/upgrade/downgrade, crawler auth help)

Test

make build, then:

  1. ./algolia --help--profile listed with (DEPRECATED: ...); new --application-id/--api-key descriptions; profile group listed with [Deprecated]
  2. ./algolia indices list -p <alias> — deprecation warning on stderr, command still works
  3. ./algolia profile --help — all 4 subcommands visible with [Deprecated]; running any of them prints the replacement hint on stderr
  4. ./algolia application select|create|list|update|upgrade|downgrade --help and ./algolia auth login|signup|crawler --help — no more "CLI profile" wording

GROUT-305

@codacy-production

codacy-production Bot commented Jun 9, 2026

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 0 complexity · 0 duplication

Metric Results
Complexity 0
Duplication 0

View in Codacy

TIP This summary will be updated as you push new changes.

@LorrisSaintGenez LorrisSaintGenez self-assigned this Jun 9, 2026
@LorrisSaintGenez LorrisSaintGenez marked this pull request as ready for review June 10, 2026 17:13
@LorrisSaintGenez LorrisSaintGenez changed the base branch from feat/write-paths to feat/profile-depr June 10, 2026 17:14
@LorrisSaintGenez LorrisSaintGenez merged commit 0ce4ade into feat/profile-depr Jun 11, 2026
1 of 2 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.

2 participants