cmd

package
v1.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 2, 2026 License: MIT Imports: 40 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RootCmd = &cobra.Command{
	Use:     "alpacon",
	Aliases: []string{"ac"},
	Short:   "Command-line client for Alpacon, the AI-native PAM",
	Long: `Alpacon CLI is the command-line client for Alpacon, the AI-native PAM.
With Alpacon, humans, AI agents, and CI/CD pipelines reach and operate
your entire fleet through a single identity—and every command they run
is judged at runtime, recorded, and bounded by a scoped work session.
If a credential leaks or an AI client is compromised, the damage is
bounded by the session, not by what the credential could touch.

Quick start (interactive auth):

  1. alpacon                                # check current login + workspace
                                            # (run 'alpacon login' or
                                            #  'alpacon workspace switch' if
                                            #  not logged in / wrong place)
  2. alpacon whoami                         # confirm identity + work
                                            # session requirement
  3. alpacon work-session create \          # create + activate a session
       --purpose "describe the task" \
       --scope command,websh \
       --server <server> \
       --use --wait
  4. alpacon exec, websh, cp, tunnel        # operate within the session

Token auth (CI/CD, API automation):

  alpacon login -t <token>                  # work session not required
  alpacon exec ...

See 'alpacon work-session --help' for session lifecycle, gating, and
common error codes.`,
	PersistentPreRunE: func(cmd *cobra.Command, args []string) error {
		switch utils.OutputFormat {
		case utils.OutputFormatTable, utils.OutputFormatJSON:
			return nil
		default:
			return fmt.Errorf("invalid --output value %q (expected %q or %q)",
				utils.OutputFormat, utils.OutputFormatTable, utils.OutputFormatJSON)
		}
	},
	Run: func(cmd *cobra.Command, args []string) {
		utils.ShowLogo(buildWelcomeLines())
	},
}

Functions

func Execute

func Execute()

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL