Skip to main content

Create App

  • Create App using GitHub

    Use command :

    initz create app --name=<appname> --source=github --user=<user> --repo=<repo> --branch=<branch> -s=<true/false> -e=<true/false>
    Flags
    --name
    • Indicates the name of the application.
    • Optional
    • Default value : reponame
    • Shorthand : n
    --source
    • Indicates the platform(GitHub/Azure devops) where your code located.
    • required
    --user
    • Indicates the git user name.
    • Optional
    • Default : Taken from repo
    --repo
    • Indicates your GitHub repository.
    • required
    --branch
    • Indicates the branch where your code is located.
    • Optional
    --setAppSetting
    • If you set setAppSetting to 'true', you will be able to configure the following:
      1. Port (default value : 8080)
      2. HTTP path (default value : /)
      3. App Instance size (default value : Default-2GB RAM|1vCPU)
      4. Vertical Auto-Scaling (default value : false)
      5. Number of Instances (default value : min-0 max-1)
    • Optional
    • Shorthand : s
    --setEnv
    • Indicates the environment setting, If you set setEnv as 'true' you will be able to configure environments variable for the application.
    • Optional
    • Shorthand : 'e'
  • Create App using Azure Devops

    initz create app --name=<appname> --source=azure --azure_org=<azure-org-name> --azure_project=<azure-project-name> --repo=<repo> --branch=<branch> --setAppSetting=<true/false> --setEnv=<true/false>
    Flags
    --name
    • Indicates the name of the application.
    • Optional
    • Default value : azure_project name
    • Shorthand : n
    --source
    • Indicates the platform(GitHub/Azure devops) where your code located.
    • Possible values : azure/github
    • required
    --azure_org
    • Indicates the organization in which your project located in the azure devops platform.
    • required
    --azure_project
    • Indicates the Project in the organization in which your code located.
    • required
    --branch
    • Indicates the branch where your code is located.
    • Optional
    • Default : main
    --setAppSetting
    • If you set setAppSetting to 'true', you will be able to configure the following:
      1. Port (default value : 8080)
      2. HTTP path (default value : /)
      3. App Instance size (default value : Default-2GB RAM|1vCPU)
      4. Vertical Auto-Scaling (default value : false)
      5. Number of Instances (default value : min-0 max-1)
    • Optional
    • Shorthand : s
    --setEnv
    • If you set setEnv as 'true' you will be able to configure environments variable for the application.
    • Optional
    • Shorthand : 'e'
note

If you encounter an error like We don't have access to the given Git Repo. Please check or configure your permission in the GitHub App, it means the repository you are using for deployment is not accessible. To grant the necessary permissions, you need to install Initz on your GitHub account. Refer command for the installation.

initz install git
  • Stage Approval (Test approval/Prod approval)

     initz set approverequest --appid <appid>
info

To create an "App" in a workspace other than the current one, you need to include an additional flag --workspaceid=< workspaceID > or you can set that particular workspace, Use command :

  • To add workspaceid=< workspaceID > :

    initz create app --name=<name> --source=<github/azure> --user=<user> --repo=<repo> --branch=<branch> --port=<port> --workspaceid=<workspaceID>
  • To set the organization :

    initz set workspace --workspaceid=<workspaceID>