Skip to content

docs: Added documentation on cli shell autocompletion integration.#427

Open
FXschwartz wants to merge 3 commits intoserverpod:mainfrom
FXschwartz:cli-autocomplete
Open

docs: Added documentation on cli shell autocompletion integration.#427
FXschwartz wants to merge 3 commits intoserverpod:mainfrom
FXschwartz:cli-autocomplete

Conversation

@FXschwartz
Copy link
Contributor

Cover usage over PR - serverpod/serverpod#4730

@marcelomendoncasoares Docs submitted for the CLI shell completion! Let me know what kind of changes you'd like made.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds documentation for CLI shell autocompletion integration using Carapace, providing users with tab-completion capabilities for Serverpod CLI commands across multiple shells (bash, zsh, fish, PowerShell, etc.).

Changes:

  • Added new documentation file explaining how to install and configure shell completion via Carapace
  • Provided shell-specific setup instructions for bash and zsh
  • Included links to external Carapace resources for other shells

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Collaborator

@marcelomendoncasoares marcelomendoncasoares left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the quick PR with the docs, @FXschwartz! Only a few suggestions for improvement.

Comment on lines +9 to +15
Install Carapace for your platform:

```bash
brew install carapace
```

For other platforms, see the [Carapace installation guide](https://carapace-sh.github.io/carapace-bin/install.html).
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggestion: Besides linking the official docs, have a brief example on how to setup for the three main platforms: MacOS (already), Ubuntu and Windows.

@@ -0,0 +1,54 @@
# Command line completion

As a `serverpod` user, you can enable command line completion in most shells. The Serverpod CLI supports completion through [Carapace](https://carapace.sh/), which provides tab-completion for commands, options, and their values in bash, zsh, fish, PowerShell, and more.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggestion: Have a section in the end showing the support of completely and a brief explanation on the difference between them - although the preferred might be Carapace -, since it is shown as option for the --tools parameter.

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

Comments