app

package
v0.2.16 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2025 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConfigureTLSCommand = &cli.Command{
	Name:    "configure",
	Aliases: []string{},
	Usage:   "Configure your application",
	Subcommands: []*cli.Command{
		{
			Name:  "tls",
			Usage: "Configure TLS for your application",
			Description: `
Adds TLS configuration to your EigenX application.

This command creates:
- Caddyfile: Reverse proxy configuration for automatic HTTPS
- .env.example.tls: Example environment variables for TLS

TLS certificates are automatically obtained via Let's Encrypt using the tls-keygen tool.`,
			Action: configureTLSAction,
		},
	},
}
View Source
var CreateCommand = &cli.Command{
	Name:      "create",
	Usage:     "Create new app project from template",
	ArgsUsage: "[name] [language] [template-name]",
	Flags: append(common.GlobalFlags, []cli.Flag{
		common.TemplateRepoFlag,
		common.TemplateVersionFlag,
	}...),
	Action: createAction,
}
View Source
var DeployCommand = &cli.Command{
	Name:      "deploy",
	Usage:     "Build, push, and deploy app to TEE",
	ArgsUsage: "[image_ref]",
	Flags: append(common.GlobalFlags, []cli.Flag{
		common.EnvironmentFlag,
		common.RpcUrlFlag,
		common.PrivateKeyFlag,
		common.EnvFlag,
		common.FileFlag,
		common.LogVisibilityFlag,
		common.ResourceUsageFlag,
		common.InstanceTypeFlag,
		common.NameFlag,
		common.WebsiteFlag,
		common.DescriptionFlag,
		common.XURLFlag,
		common.ImageFlag,
	}...),
	Action: deployAction,
}
View Source
var InfoCommand = &cli.Command{
	Name:      "info",
	Usage:     "Show detailed instance info",
	ArgsUsage: "[app-id|name]",
	Flags: append(common.GlobalFlags, []cli.Flag{
		common.EnvironmentFlag,
		common.RpcUrlFlag,
		common.AddressCountFlag,
		common.WatchFlag,
	}...),
	Action: infoAction,
}
View Source
var ListCommand = &cli.Command{
	Name:  "list",
	Usage: "List all deployed apps",
	Flags: append(common.GlobalFlags, []cli.Flag{
		common.EnvironmentFlag,
		common.RpcUrlFlag,
		common.PrivateKeyFlag,
		common.AllFlag,
		common.AddressCountFlag,
	}...),
	Action: listAction,
}
View Source
var LogsCommand = &cli.Command{
	Name:      "logs",
	Usage:     "View app logs",
	ArgsUsage: "[app-id|name]",
	Flags: append(common.GlobalFlags, []cli.Flag{
		common.EnvironmentFlag,
		common.RpcUrlFlag,
		common.WatchFlag,
	}...),
	Action: logsAction,
}
View Source
var ProfileCommand = &cli.Command{
	Name:      "profile",
	Usage:     "Manage public app profile",
	ArgsUsage: "<app-id|name>",
	Subcommands: []*cli.Command{
		{
			Name:      "set",
			Usage:     "Set public profile information for an app",
			ArgsUsage: "<app-id|name>",
			Flags: append(common.GlobalFlags, []cli.Flag{
				common.EnvironmentFlag,
				common.RpcUrlFlag,
				common.NameFlag,
				common.WebsiteFlag,
				common.DescriptionFlag,
				common.XURLFlag,
				common.ImageFlag,
			}...),
			Action: profileSetAction,
		},
	},
}
View Source
var StartCommand = &cli.Command{
	Name:      "start",
	Usage:     "Start stopped app (start GCP instance)",
	ArgsUsage: "[app-id|name]",
	Flags: append(common.GlobalFlags, []cli.Flag{
		common.EnvironmentFlag,
		common.RpcUrlFlag,
		common.PrivateKeyFlag,
	}...),
	Action: startAction,
}
View Source
var StopCommand = &cli.Command{
	Name:      "stop",
	Usage:     "Stop running app (stop GCP instance)",
	ArgsUsage: "[app-id|name]",
	Flags: append(common.GlobalFlags, []cli.Flag{
		common.EnvironmentFlag,
		common.RpcUrlFlag,
		common.PrivateKeyFlag,
	}...),
	Action: stopAction,
}
View Source
var TerminateCommand = &cli.Command{
	Name:      "terminate",
	Usage:     "Terminate app (terminate GCP instance) permanently",
	ArgsUsage: "[app-id|name]",
	Flags: append(common.GlobalFlags, []cli.Flag{
		common.EnvironmentFlag,
		common.RpcUrlFlag,
		common.PrivateKeyFlag,
		common.ForceFlagWithUsage("Force termination without confirmation"),
	}...),
	Action: terminateAction,
}
View Source
var UpgradeCommand = &cli.Command{
	Name:      "upgrade",
	Usage:     "Upgrade existing deployment",
	ArgsUsage: "<app-id|name> <image_ref>",
	Flags: append(common.GlobalFlags, []cli.Flag{
		common.EnvironmentFlag,
		common.RpcUrlFlag,
		common.PrivateKeyFlag,
		common.EnvFlag,
		common.FileFlag,
		common.LogVisibilityFlag,
		common.ResourceUsageFlag,
		common.InstanceTypeFlag,
	}...),
	Action: upgradeAction,
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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