Export

Pushes staged component(s) to a remote Scope.

Synopsis

bit export [-f|--forget] [-e|--eject] <remote> [id...]

Examples

Export all staged components to the same Scope

bit export [Scope name]

Export a specific component to a Scope

bit export [Scope name] [component id]

Export two (or more components) to a Scope

bit export [Scope 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 Scope. In order to do that, use the --eject flag.

bit export bit.examples string/pad-left --eject

Options

-f, —forget

Don’t update bit.json after export.

bit export bit.examples string/pad-left --eject

-e, —eject

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
  • cli diff
  • cli import