Pushes staged component(s) to a remote Collection.
bit export [-f|--forget] [-e|--eject] <remote> [id...]
Export all staged components to the same Collection
bit export [Collection name]
Export a specific component to a Collection
bit export [Collection name] [component id]
Export two (or more components) to a Collection
bit export [Collection name] [component id 1] [component id 2]
Eject component back as a dependency
In some workflows or cases, you may wish to remove a component from your repository’s source-code and consume it as a dependency using common package managers such as NPM or Yarn after exporting it to a remote Collection. In order to do that, use the
bit export bit.examples string/pad-left --eject
Export modified component and skip logging it as a dependency.
bit export bit.examples string/pad-left --forget
Remove the component from the repository and consume it as a dependency using a common package manager.
bit export string/pad-left bit.examples --eject