Uploaded image for project: 'Appcelerator CLI'
  1. Appcelerator CLI
  2. CLI-1252

Add support for importing an existing API Builder application into a new environment


    • Type: New Feature
    • Status: Open
    • Priority: None
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Core
    • Labels:



      The migration process for an API Builder application is not that simple.
      The ideal workflow of an end user wishing to migrate an app between environments would be like so

      • appc login to new environment
      • appc new --import
      • Answer question about whether they wish to replace the appc.arrowdb keys, stressing that this action will remove the existing conf files
      • appc publish

      However, this is the current workflow of an end user, bolded are places where human errors can occur, italics mean it may be optional

      • appc login to new environment
      • Go to the environments dashboard
      • Create a new arrowdb datasource
      • Create a user in both development and production, ensuring that they are admin and noting down the username and password
      • In both appc.arrowdb.development.js and appc.arrowdb.production.js
          • Replace the key value with the value from the configuration page on dashboard
        • Replace the username and password values with the user created in the previous step
        • Replace baseurl with the value of appc config get environment.acsBaseUrl
      • In default.js
        • Update validEmails with the email of the user in the new environment
        • Update validOrgs with the org_id of the org in the new env
      • appc publish
      • Answer question about importing the API Builder app into the new env

      This already exists in a similar workflow for importing Titanium apps into the platform, the behaviour and workflow for that should be maintained for a consistent experience.




            • Assignee:
              eharris Ewan Harris
            • Watchers:
              1 Start watching this issue


              • Created:

                Git Source Code