Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions src/kapacitor/Resources/help-profile.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
kapacitor profile — Manage server profiles

Usage: kapacitor profile <subcommand> [options]

Subcommands:
add <name> --server-url <url> [--remote <pattern>]...
Add a new profile
list Show all profiles
remove <name> Remove a profile
show [name] Show profile details (defaults to active)

Options for 'add':
--server-url <url> Server URL (required)
--remote <pattern> Git remote pattern for auto-matching (repeatable)

Examples:
kapacitor profile add work --server-url https://cap.example.com
kapacitor profile add oss --server-url https://cap.oss.dev --remote github.com/myorg
kapacitor profile list
kapacitor profile show work
kapacitor profile remove work
7 changes: 7 additions & 0 deletions src/kapacitor/Resources/help-usage.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@ Getting Started:
logout Remove stored credentials
whoami Show current authenticated user

Profiles:
profile add <name> --server-url <url> Add a server profile
profile list Show all profiles
profile remove <name> Remove a profile
profile show [name] Show profile details
use <profile> [--global] [--save] Switch active profile

Configuration:
config show Print current configuration
config set <key> <value> Update a config value
Expand Down
16 changes: 16 additions & 0 deletions src/kapacitor/Resources/help-use.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
kapacitor use — Switch active profile

Usage: kapacitor use <profile-name> [options]

Switches the active profile globally or binds it to a directory.
Without --global, binds the profile to the git repo root, or the current
directory if not inside a git repository.

Options:
--global Set as the global active profile
--save Write .kapacitor.json to the bind directory (for team sharing)

Examples:
kapacitor use work Bind 'work' profile to current repo/directory
kapacitor use work --global Set 'work' as the global default
kapacitor use oss --save Bind and write .kapacitor.json
Loading