Create scratch org with namespace?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty margin-bottom:0;







up vote
4
down vote

favorite












How do I create a scratch org that has the same namespace as my Developer Edition org where the managed package is held?



I've followed the instructions in the "Link a Namespace to a Dev Hub Org" page to link the namespace to my Dev Hub org, but I cannot find any instructions on any of the documentation pages below for how to actually create a new scratch org that has the same namespace as my DE org.



  • Create Scratch Orgs

  • Scratch Org Definition File

  • Scratch Org Definition Configuration Values









share|improve this question



























    up vote
    4
    down vote

    favorite












    How do I create a scratch org that has the same namespace as my Developer Edition org where the managed package is held?



    I've followed the instructions in the "Link a Namespace to a Dev Hub Org" page to link the namespace to my Dev Hub org, but I cannot find any instructions on any of the documentation pages below for how to actually create a new scratch org that has the same namespace as my DE org.



    • Create Scratch Orgs

    • Scratch Org Definition File

    • Scratch Org Definition Configuration Values









    share|improve this question























      up vote
      4
      down vote

      favorite









      up vote
      4
      down vote

      favorite











      How do I create a scratch org that has the same namespace as my Developer Edition org where the managed package is held?



      I've followed the instructions in the "Link a Namespace to a Dev Hub Org" page to link the namespace to my Dev Hub org, but I cannot find any instructions on any of the documentation pages below for how to actually create a new scratch org that has the same namespace as my DE org.



      • Create Scratch Orgs

      • Scratch Org Definition File

      • Scratch Org Definition Configuration Values









      share|improve this question













      How do I create a scratch org that has the same namespace as my Developer Edition org where the managed package is held?



      I've followed the instructions in the "Link a Namespace to a Dev Hub Org" page to link the namespace to my Dev Hub org, but I cannot find any instructions on any of the documentation pages below for how to actually create a new scratch org that has the same namespace as my DE org.



      • Create Scratch Orgs

      • Scratch Org Definition File

      • Scratch Org Definition Configuration Values






      managed-package salesforcedx namespace scratch-org






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 53 mins ago









      Marty C.

      2,47541840




      2,47541840




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          4
          down vote













          In the project configuration file, specify the namespace.



           
          "packageDirectories" : [
          "path": "force-app", "default": true
          ],
          "namespace": "myns",
          "sfdcLoginUrl" : "https://login.salesforce.com",
          "sourceApiVersion": "44.0"



          This really only alluded to in the documentation, but sfdx-project.json is the key to creating a scratch org with a namespace.






          share|improve this answer




















            Your Answer







            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "459"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            convertImagesToLinks: false,
            noModals: false,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













             

            draft saved


            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsalesforce.stackexchange.com%2fquestions%2f234220%2fcreate-scratch-org-with-namespace%23new-answer', 'question_page');

            );

            Post as a guest






























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            4
            down vote













            In the project configuration file, specify the namespace.



             
            "packageDirectories" : [
            "path": "force-app", "default": true
            ],
            "namespace": "myns",
            "sfdcLoginUrl" : "https://login.salesforce.com",
            "sourceApiVersion": "44.0"



            This really only alluded to in the documentation, but sfdx-project.json is the key to creating a scratch org with a namespace.






            share|improve this answer
























              up vote
              4
              down vote













              In the project configuration file, specify the namespace.



               
              "packageDirectories" : [
              "path": "force-app", "default": true
              ],
              "namespace": "myns",
              "sfdcLoginUrl" : "https://login.salesforce.com",
              "sourceApiVersion": "44.0"



              This really only alluded to in the documentation, but sfdx-project.json is the key to creating a scratch org with a namespace.






              share|improve this answer






















                up vote
                4
                down vote










                up vote
                4
                down vote









                In the project configuration file, specify the namespace.



                 
                "packageDirectories" : [
                "path": "force-app", "default": true
                ],
                "namespace": "myns",
                "sfdcLoginUrl" : "https://login.salesforce.com",
                "sourceApiVersion": "44.0"



                This really only alluded to in the documentation, but sfdx-project.json is the key to creating a scratch org with a namespace.






                share|improve this answer












                In the project configuration file, specify the namespace.



                 
                "packageDirectories" : [
                "path": "force-app", "default": true
                ],
                "namespace": "myns",
                "sfdcLoginUrl" : "https://login.salesforce.com",
                "sourceApiVersion": "44.0"



                This really only alluded to in the documentation, but sfdx-project.json is the key to creating a scratch org with a namespace.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered 46 mins ago









                sfdcfox

                230k10177391




                230k10177391



























                     

                    draft saved


                    draft discarded















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsalesforce.stackexchange.com%2fquestions%2f234220%2fcreate-scratch-org-with-namespace%23new-answer', 'question_page');

                    );

                    Post as a guest













































































                    Comments

                    Popular posts from this blog

                    Long meetings (6-7 hours a day): Being “babysat” by supervisor

                    Is the Concept of Multiple Fantasy Races Scientifically Flawed? [closed]

                    Confectionery