Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AIClient ai.AIClient
View Source
var AISuggestCmd = &cobra.Command{ Use: "ai:suggest [prompt]", Short: "Send a prompt to your configured AI provider and receive a suggestion", Args: cobra.MinimumNArgs(1), Run: func(cmd *cobra.Command, args []string) { if AIClient == nil { fmt.Println("AI not configured. Set either OPENAI_API_KEY or CLAUDE_API_KEY environment variable.") return } prompt := strings.Join(args, " ") suggestion, err := AIClient.Suggest(prompt) if err != nil { fmt.Printf("AI Suggestion Error: %v\n", err) return } fmt.Printf("[%s/%s]: %s\n", AIClient.GetProvider(), AIClient.GetModel(), suggestion) }, }
AISuggestCmd represents the ai:suggest command
View Source
var DeployCmd = &cobra.Command{ Use: "deploy [templateId]", Short: "Deploy an application", Long: `Deploy an application using either a predefined template or a custom YAML configuration. Examples: # Deploy using a template nexlayer deploy hello-world # Deploy to a specific environment nexlayer deploy hello-world --env production # Deploy with debug output nexlayer deploy hello-world --debug`, Args: cobra.ExactArgs(1), RunE: runDeploy, }
DeployCmd represents the deploy command
View Source
var DomainCmd = &cobra.Command{ Use: "domain [domain]", Short: "Set a custom domain", Long: `Set a custom domain for your deployment. Example: nexlayer domain mydomain.com`, Args: cobra.ExactArgs(1), RunE: runDomain, }
DomainCmd represents the domain command
View Source
var InfoCmd = &cobra.Command{ Use: "info [namespace]", Short: "Get deployment information", Long: `Get detailed information about a specific deployment. Example: nexlayer info my-namespace`, Args: cobra.ExactArgs(1), RunE: runInfo, }
InfoCmd represents the info command
View Source
var InitCmd = &cobra.Command{
Use: "init",
Short: "Initialize Nexlayer CLI configuration",
Long: `Initialize Nexlayer CLI configuration and set up your environment.
This command will help you set up your authentication token and configure
basic settings for the Nexlayer CLI.`,
RunE: runInit,
}
View Source
var ListCmd = &cobra.Command{ Use: "list", Short: "List all deployments", Long: `List all your deployments and their current status. Example: nexlayer list`, Args: cobra.NoArgs, RunE: runList, }
ListCmd represents the list command
View Source
var PluginCmd = &cobra.Command{
Use: "plugin",
Short: "Manage Nexlayer CLI plugins",
Long: `Install, remove, update, and list Nexlayer CLI plugins.`,
}
PluginCmd represents the plugin command
View Source
var ScaleCmd = &cobra.Command{
Use: "scale",
Short: "Scale application resources",
Long: `Scale your application's resources including replicas, CPU, and memory.
Example: nexlayer-cli scale --app myapp --replicas 3`,
RunE: runScale,
}
ScaleCmd represents the scale command
View Source
var StatusCmd = &cobra.Command{
Use: "status",
Short: "Check deployment status",
Long: `Check the status of your deployments.
Example: nexlayer-cli status --app my-app`,
RunE: runStatus,
}
StatusCmd represents the status command
View Source
var WizardCmd = &cobra.Command{
Use: "wizard",
Short: "Start the interactive deployment wizard",
Long: "Start an interactive wizard to guide you through deploying your application",
RunE: runWizard,
}
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.