sfdx-isv / sfdx-falcon

A Salesforce CLI Plugin that enables and enhances implementation of the SFDX-Falcon family of projects, including the AppExchange Demo Kit (ADK) and AppExchange Package Kit (APK)
https://sfdx-isv.github.io/sfdx-falcon/
37 stars 6 forks source link

Getting error No org config found for name 'alias' #157

Open ghost1996110 opened 5 years ago

ghost1996110 commented 5 years ago

while running comand sdfx falcon:adk:install i get an error on second step

No org config found for name "" does any one have any idea

VivekMChawla commented 5 years ago

@ghost1996110 - Can you paste your Recipe file? The recipe file should be in your project's config folder. It should have the same name as the defaultRecipe key inside sfdx-project.json.

ghost1996110 commented 5 years ago

{ "recipeName": "ADK Sample Demo Recipe", "description": "Sample Recipe for Building an ADK Demo", "recipeType": "appx:demo-recipe", "recipeVersion": "1.0.0", "schemaVersion": "0.1.2", "options": { "haltOnError": true, "noCustomInstall": true, "skipGroups": [], "skipActions": [], "targetOrgs": [ { "orgName": "Scratch Org Demo", "alias": "univ-ctrs_scratch-demo", "description": "Installs demo in a Scratch Org", "isScratchOrg": true, "scratchDefJson": "demo-scratch-def.json" } ] }, "recipeStepGroups": [ { "stepGroupName": "Install Packages", "alias": "install-packages", "description": "Installs all managed and unmanged packages required by the demo", "recipeSteps": [ { "stepName": "Install Falcon-X Managed Package", "description": "Installs version 1.2 (Beta 10) of the Falcon-X package", "action": "install-package", "options": { "packageName": "Falcon-X, Version 1.2 (Beta 10)", "packageVersionId": "04t1N000001bW4g" } }, { "stepName": "Install VMC Base Package", "description": "Installs version 1.37 (Beta 1) of the VMC Base Package", "action": "install-package", "options": { "packageName": "VMC Base Package, Version 1.37 (Beta 1)", "packageVersionId": "04t360000011vqy" } } ] }, { "stepGroupName": "Deploy Metadata", "alias": "deploy-metadata", "description": "Deploys code from the mdapi-source directory", "recipeSteps": [ { "stepName": "Deploy App Config", "description": "Deploys metadata found in mdapi-source/app-config", "action": "deploy-metadata", "options": { "mdapiSource": "app-config" } }, { "stepName": "Deploy Data Config", "description": "Deploys metadata found in mdapi-source/data-config", "action": "deploy-metadata", "options": { "mdapiSource": "data-config" } }, { "stepName": "Deploy Org Config", "description": "Deploys metadata found in mdapi-source/org-config", "action": "deploy-metadata", "options": { "mdapiSource": "org-config" } } ] }, { "stepGroupName": "Create and Configure Users", "alias": "create-users", "description": "Configure the Admin User and create primary and secondary demo users", "recipeSteps": [ { "stepName": "Configure Admin User", "description": "Configures the Admin User based on demo-user-admin.json", "action": "configure-admin-user", "options": { "definitionFile": "demo-user-admin.json" } }, { "stepName": "Create Primary Demo User", "description": "Creates a demo user based on demo-user-primary.json", "action": "create-user", "options": { "definitionFile": "demo-user-primary.json", "sfdxUserAlias": "univ-ctrs_primary-demo-user" } }, { "stepName": "Create Secondary Demo User", "description": "Creates a demo user based on demo-user-secondary.json", "action": "create-user", "options": { "definitionFile": "demo-user-secondary.json", "sfdxUserAlias": "univ-ctrs_secondary-demo-user" } } ] }, { "stepGroupName": "Import/Create Data", "alias": "import-data", "description": "Imports or creates data in the demo org", "recipeSteps": [ { "stepName": "Import Custom Settings", "description": "Imports custom settings data", "action": "import-data-tree", "options": { "plan": "custom-settings/data-plan.json" } }, { "stepName": "Import Sample Data", "description": "Imports sample account and DriveWealth data", "action": "import-data-tree", "options": { "plan": "sample-customers/data-plan.json" } } ] } ], "handlers": [ {}, {} ] }

ghost1996110 commented 5 years ago

sdfx project.json

{ "packageDirectories" : [ {"path": "sfdx-source/force-app", "default": true} ], "sfdcLoginUrl": "https://login.salesforce.com", "sourceApiVersion": "45.0", "plugins": { "sfdxFalcon": { "developerAlias" : "univ-ctrs", "developerName" : "Universal Containers", "projectAlias" : "uc-demo-app", "projectName" : "Universal Containers Demo App", "projectFamily" : "ADK", "projectType" : "single-demo", "defaultRecipe" : "demo-recipe.json", "gitRemoteUri" : "https://github.com/my-org/my-repo.git", "gitHubUrl" : "https://github.com/my-org/my-repo", "projectVersion" : "0.0.1", "schemaVersion" : "0.0.1", "pluginVersion" : "0.0.93", "appxPackage" : {}, "appxDemo": { "demoRecipes" : ["demo-recipe.json"] } }
} }

VivekMChawla commented 5 years ago

@ghost1996110 - Thanks for sharing your Recipe and sfdx-project.json files.

What exactly is the second step you're referring to? Is it "Install Packages" or "Create New Scratch Org"?

Could you share a screenshot of what you're seeing? Thanks!