cli

package
v0.1.39 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2025 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyCmd added in v0.1.27

func ApplyCmd() *cobra.Command

func BootChat added in v0.1.27

func BootChat(
	ctx context.Context,
	workspace string,
	resourceType string,
	resourceName string,
	debug bool,
	local bool,
	headerFlags []string,
) error

func Chat added in v0.1.27

func Chat(
	ctx context.Context,
	workspace string,
	resourceType string,
	resourceName string,
	debug bool,
	local bool,
	headerFlags []string,
) error

func ChatCmd added in v0.1.27

func ChatCmd() *cobra.Command

func CheckResource added in v0.1.27

func CheckResource(
	ctx context.Context,
	workspace string,
	resourceType string,
	resourceName string,
) error

func CheckWorkspaceAccess

func CheckWorkspaceAccess(workspaceName string, credentials sdk.Credentials) (sdk.Workspace, error)

func ConnectCmd added in v0.1.27

func ConnectCmd() *cobra.Command

func ConnectSandboxCmd added in v0.1.27

func ConnectSandboxCmd() *cobra.Command

func CreateAgentAppCmd added in v0.1.27

func CreateAgentAppCmd() *cobra.Command

CreateAgentAppCmd returns a cobra.Command that implements the 'create-agent-app' CLI command. The command creates a new Blaxel agent app in the specified directory after collecting necessary configuration through an interactive prompt. Usage: bl create-agent-app directory [--template template-name]

func CreateJobCmd added in v0.1.27

func CreateJobCmd() *cobra.Command

CreateJobCmd returns a cobra.Command that implements the 'create-job' CLI command. The command creates a new Blaxel job in the specified directory after collecting necessary configuration through an interactive prompt. Usage: bl create-job directory [--template template-name]

func CreateMCPServerCmd added in v0.1.27

func CreateMCPServerCmd() *cobra.Command

CreateMCPServerCmd returns a cobra.Command that implements the 'create-mcpserver' CLI command. The command creates a new Blaxel mcp server in the specified directory after collecting necessary configuration through an interactive prompt. Usage: bl create-mcp-server directory [--template template-name]

func CreateSandboxCmd added in v0.1.34

func CreateSandboxCmd() *cobra.Command

CreateSandboxCmd returns a cobra.Command that implements the 'create-sandbox' CLI command. The command creates a new Blaxel sandbox in the specified directory after collecting necessary configuration through an interactive prompt. Usage: bl create-sandbox directory [--template template-name]

func DeleteCmd added in v0.1.27

func DeleteCmd() *cobra.Command

func DeleteFn added in v0.1.27

func DeleteFn(resource *core.Resource, name string)

func DeployCmd added in v0.1.27

func DeployCmd() *cobra.Command

func Execute

func Execute(releaseVersion string, releaseCommit string, releaseDate string) error

func GetCmd added in v0.1.27

func GetCmd() *cobra.Command

func GetFn added in v0.1.27

func GetFn(resource *core.Resource, name string)

func ListExec added in v0.1.27

func ListExec(resource *core.Resource) ([]interface{}, error)

func ListFn added in v0.1.27

func ListFn(resource *core.Resource)

func ListOrSetWorkspacesCmd added in v0.1.27

func ListOrSetWorkspacesCmd() *cobra.Command

func LoginCmd added in v0.1.27

func LoginCmd() *cobra.Command

func LogoutCmd added in v0.1.27

func LogoutCmd() *cobra.Command

func NewCmd added in v0.1.39

func NewCmd() *cobra.Command

NewCmd implements `bl new` which unifies create commands under one entrypoint. Usage:

bl new [type] [directory] [-t template] [-y]

Examples:

bl new agent my-app -t template-google-adk-py
bl new mcp my-func -y
bl new

func RunAgentAppCreation added in v0.1.39

func RunAgentAppCreation(dirArg string, templateName string, noTTY bool)

RunAgentAppCreation is a reusable wrapper that executes the agent creation flow. It can be called by both the dedicated command and the unified `bl new` command.

func RunCmd added in v0.1.27

func RunCmd() *cobra.Command

func RunJobCreation added in v0.1.39

func RunJobCreation(dirArg string, templateName string, noTTY bool)

RunJobCreation is a reusable wrapper that executes the job creation flow.

func RunMCPCreation added in v0.1.39

func RunMCPCreation(dirArg string, templateName string, noTTY bool)

RunMCPCreation is a reusable wrapper that executes the MCP server creation flow.

func RunSandboxCreation added in v0.1.39

func RunSandboxCreation(dirArg string, templateName string, noTTY bool)

RunSandboxCreation is a reusable wrapper that executes the sandbox creation flow.

func SendMessage added in v0.1.27

func SendMessage(
	ctx context.Context,
	workspace string,
	resourceType string,
	resourceName string,
	message string,
	debug bool,
	local bool,
	headers []string,
) (string, error)

func SendMessageStream added in v0.1.27

func SendMessageStream(
	ctx context.Context,
	workspace string,
	resourceType string,
	resourceName string,
	message string,
	debug bool,
	local bool,
	headers []string,
	onChunk func(string),
) error

func ServeCmd added in v0.1.27

func ServeCmd() *cobra.Command

func VersionCmd added in v0.1.27

func VersionCmd() *cobra.Command

Types

type ApplyOption

type ApplyOption func(*applyOptions)

ApplyOption defines a function type for apply options

func WithRecursive

func WithRecursive(recursive bool) ApplyOption

WithRecursive sets the recursive option

type ApplyResult

type ApplyResult struct {
	Kind   string
	Name   string
	Result ResourceOperationResult
}

func Apply added in v0.1.27

func Apply(filePath string, opts ...ApplyOption) ([]ApplyResult, error)

func ApplyResources added in v0.1.27

func ApplyResources(results []core.Result) ([]ApplyResult, error)

type Deployment

type Deployment struct {
	// contains filtered or unexported fields
}

func (*Deployment) Apply

func (d *Deployment) Apply() error

func (*Deployment) Generate

func (d *Deployment) Generate(skipBuild bool) error

func (*Deployment) GenerateDeployment

func (d *Deployment) GenerateDeployment(skipBuild bool) core.Result

func (*Deployment) IgnoredPaths

func (d *Deployment) IgnoredPaths() []string

func (*Deployment) Print

func (d *Deployment) Print(skipBuild bool) error

func (*Deployment) PrintZip

func (d *Deployment) PrintZip() error

func (*Deployment) Ready added in v0.1.15

func (d *Deployment) Ready()

func (*Deployment) Upload

func (d *Deployment) Upload(url string) error

func (*Deployment) Zip

func (d *Deployment) Zip() error

type ResourceOperationResult

type ResourceOperationResult struct {
	Status    string
	UploadURL string
}

func PostFn added in v0.1.27

func PostFn(resource *core.Resource, resourceName string, name string, resourceObject interface{}) *ResourceOperationResult

func PutFn added in v0.1.27

func PutFn(resource *core.Resource, resourceName string, name string, resourceObject interface{}) *ResourceOperationResult

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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