bit icon indicating copy to clipboard operation
bit copied to clipboard

How to add remote scope

Open MikulasLebowski opened this issue 3 years ago • 2 comments

After having to reset/reinstall bit and workspace multiple times because of various issues with bit, I now need to export some components to an existing scope to update them.

The components are staged, but when doing 'bit export', bit says: please specify to export them, or set a "defaultScope" in your workspace config

How can I do that? The documentation is close to non-existent and I couldn't find any examples of this anywhere. Tried: bit export myscope/name, - says scope doesn't exist bit remote myscope/name

  • says "no configured remotes found in scope"

MikulasLebowski avatar Jul 08 '22 13:07 MikulasLebowski

I think you need to create a remote scope.

  1. Login into your bit account https://bit.cloud/ and then create a new scope
  2. You will see a new default scope image
  3. Go to your existing project and open the workspace.jsonc file
  4. Replace "defaultScope": with your default scope and then build, tag, and export the components

Otherwise, please see this section of the documentation: https://bit.dev/docs/quick-start#create-a-remote-scope

irvingviveros avatar Jul 13 '22 18:07 irvingviveros

In your workspace.jsonc file update the defaultScope value

have in mind that the format needs to be: myCompanyOrOrganization.myScope

For example: image

Also make sure that the scope was already created in bit.cloud.

Regarding the docs, I it is specified in the quick start, somewhat around the middle. https://bit.dev/docs/quick-start

jonatankBIT avatar Jul 27 '22 07:07 jonatankBIT