-
Notifications
You must be signed in to change notification settings - Fork 2
docs(cli): add an index page for the commands section #12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
69 changes: 69 additions & 0 deletions
69
apps/docs/src/content/docs/cli/default/en/commands/index.mdx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,69 @@ | ||
| --- | ||
| title: Overview | ||
| description: "Index of every ferris-ctl command: what each one is for, and where its reference page lives." | ||
| icon: square-terminal | ||
| permalink: /en/cli/commands | ||
| order: 0 | ||
| --- | ||
|
|
||
| # Commands | ||
|
|
||
| `ferris-ctl` exposes seven top-level commands. Every one of them accepts the [global flags](/en/cli/overview#global-flags), and every one resolves where to connect, who you are, and which realm to act on before it sends anything — see [Authentication](/en/cli/authentication). | ||
|
|
||
| ## Connect and authenticate | ||
|
|
||
| ::::card-group{cols=3} | ||
| :::card{label="context" icon="lucide:server" href="/en/cli/commands/context"} | ||
| Named connection profiles storing a server URL, a client, and a default realm. Switch environments without retyping flags. | ||
| ::: | ||
| :::card{label="login" icon="lucide:log-in" href="/en/cli/commands/login"} | ||
| Sign in with the OAuth 2.0 Device Authorization Grant and persist the session for every later command. | ||
| ::: | ||
| :::card{label="logout" icon="lucide:log-out" href="/en/cli/commands/logout"} | ||
| Drop the stored session by deleting the credentials file. | ||
| ::: | ||
| :::: | ||
|
|
||
| ## Administer a realm | ||
|
|
||
| ::::card-group{cols=3} | ||
| :::card{label="realm" icon="lucide:layers" href="/en/cli/commands/realm"} | ||
| Create, inspect, and delete realms — and import one from an external source. | ||
| ::: | ||
| :::card{label="client" icon="lucide:box" href="/en/cli/commands/client"} | ||
| Create, inspect, and delete OAuth2 clients within a realm. | ||
| ::: | ||
| :::card{label="user" icon="lucide:users" href="/en/cli/commands/user"} | ||
| Create, inspect, and delete users within a realm. | ||
| ::: | ||
| :::: | ||
|
|
||
| ## Import | ||
|
|
||
| ::::card-group{cols=2} | ||
| :::card{label="source" icon="lucide:database" href="/en/cli/commands/source"} | ||
| Store reusable import sources, so credentials and URLs are not repeated on every import. | ||
| ::: | ||
| :::card{label="Importing realms" icon="lucide:import" href="/en/cli/import/overview"} | ||
| The import guide: from a description file, a live Keycloak, or a live Zitadel instance. | ||
| ::: | ||
| :::: | ||
|
|
||
| ## At a glance | ||
|
|
||
| | Command | Purpose | | ||
| |---------|---------| | ||
| | [`context`](/en/cli/commands/context) | Manage connection contexts | | ||
| | [`realm`](/en/cli/commands/realm) | Manage realms | | ||
| | [`client`](/en/cli/commands/client) | Manage OAuth2 clients | | ||
| | [`user`](/en/cli/commands/user) | Manage users | | ||
| | [`source`](/en/cli/commands/source) | Manage reusable import sources | | ||
| | [`login`](/en/cli/commands/login) | Sign in via the OAuth 2.0 Device Authorization Grant | | ||
| | [`logout`](/en/cli/commands/logout) | Remove the stored login session | | ||
|
|
||
| Each command carries its own help, down to the subcommand: | ||
|
|
||
| ```bash | ||
| ferris-ctl <command> --help | ||
| ferris-ctl <command> <subcommand> --help | ||
| ``` | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
Scope the connection-resolution statement to remote commands.
contextandlogoutare documented below as local operations.contextstores profiles, andlogoutdeletes the credentials file. They do not resolve a server, identity, and realm before sending a request. Rewrite this sentence so it applies only to commands that contact the FerrisKey API.Proposed wording
📝 Committable suggestion
🤖 Prompt for AI Agents