Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RootCmd = &cobra.Command{ Use: "alpacon", Aliases: []string{"ac"}, SilenceErrors: true, SilenceUsage: true, Short: "Use Alpacon, the AI-native PAM, from the terminal", Long: `Alpacon CLI is the command-line client for Alpacon, the AI-native PAM. Humans, AI agents, and CI/CD run commands—each judged, recorded, and bounded. Quick start (for humans and AI agents): 1. alpacon server ls # find the server to target 2. alpacon work-session create \ # open + activate a scoped session --purpose "<what you're doing>" \ # (prints a SESSION_ID) --scope command,websh \ # (scopes: command, editor, sudo, tunnel, webftp, websh) --server <SERVER> \ --expires-in 1h \ # (required non-interactively; or --expires-at <RFC3339>) --use --wait 3. alpacon exec <SERVER> -- <COMMAND> # run work inside the session 4. alpacon work-session complete <SESSION_ID> # finish the session when done AI agents add --requester-type agent to step 2 and drop --use and websh, which an agent session refuses; step 3 then names the session before the server: alpacon exec --work-session <SESSION_ID> <SERVER> -- <COMMAND> For a Kubernetes cluster, 'alpacon kube login <CLUSTER>' finds or creates a session that targets the cluster (scopes kube, kube_exec) and writes the kubeconfig context kubectl uses. See 'alpacon work-session --help' for session lifecycle and error codes.`, PersistentPreRunE: func(cmd *cobra.Command, args []string) error { return utils.SetOutputFormat(utils.OutputFormat) }, Run: func(cmd *cobra.Command, args []string) { if showVersion { runVersion() return } utils.ShowLogo(buildWelcomeLines()) }, }
Functions ¶
Types ¶
This section is empty.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package acl implements 'alpacon acl', which manages the command pre-approval ledger held by the command signer.
|
Package acl implements 'alpacon acl', which manages the command pre-approval ledger held by the command signer. |
Click to show internal directories.
Click to hide internal directories.