Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var InitCmd = &cobra.Command{ Use: "init <app name>", Short: "Initialize a new Hyphen application in the current directory", Long: ` The init command sets up a new Hyphen application in your current directory. This command will: - Create a new application in Hyphen - Generate a local configuration file - Set up environment files for each project environment - Update .gitignore to exclude sensitive files If no app name is provided, it will prompt to use the current directory name. The command will guide you through: - Confirming or entering an application name - Generating or providing an app ID - Creating necessary local files After initialization, you'll receive a summary of the new application, including its name, ID, and associated organization. Examples: hyphen init hyphen init "My New App" hyphen init "My New App" --id my-custom-app-id `, Args: cobra.MaximumNArgs(1), PersistentPreRunE: func(cmd *cobra.Command, args []string) error { return user.ErrorIfNotAuthenticated() }, RunE: func(cmd *cobra.Command, args []string) error { if isMonorepo { runInitMonorepo(cmd, args) } else { initapp.RunInitApp(cmd, args) } return nil }, }
Functions ¶
func CreateAndPushEmptyEnvFileMonorepo ¶ added in v0.13.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.