Skip to content

Conversation

@xrehpicx
Copy link

Description

Fixes incorrect example in README.md for the apikey create command.

Changes

  • Changed anytype auth apikey create --name "my-app" to anytype auth apikey create "my-app"
  • The command expects the name as a positional argument, not a flag

Testing

Verified by checking the command implementation in cmd/auth/apikey/create/create.go which shows:

  • Use: "create <name>" - name is a positional argument
  • Args: cmdutil.ExactArgs(1, ...) - requires exactly 1 argument

The README had an inconsistency - line 53 shows the correct usage, but line 159 showed incorrect usage with --name flag.

The apikey create command expects the name as a positional argument,
not a flag. Remove the incorrect --name flag from the example.
@jmetrikat
Copy link
Collaborator

Thanks for spotting - i've addressed the overall positional argument consistency as part of #11.

@jmetrikat jmetrikat closed this Dec 17, 2025
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