Skip to main content
The add command uploads a local file or directory into a workspace. Note that Diversion tracks changes inside a workspace automatically — add is only needed to upload content from outside the workspace, for example from scripts.
Required Parameters:
  • --local_path - The path to the local file or directory to upload
  • --path - The target path in the workspace
Optional Parameters:
  • --repo_id - The ID of the repository to upload the file to (defaults to the current workspace’s repo)
  • --workspace_id - The ID of the workspace to upload the file to (defaults to the current workspace)
An example of uploading a build artifact into the workspace:
After using add, you’ll still need to commit the changes to save them to your branch.