diff --git a/crates/turborepo-lib/src/commands/link.rs b/crates/turborepo-lib/src/commands/link.rs index a83dd0a01d2a0..3e1cb07527946 100644 --- a/crates/turborepo-lib/src/commands/link.rs +++ b/crates/turborepo-lib/src/commands/link.rs @@ -247,6 +247,11 @@ pub async fn link( ) })?; + fs::create_dir_all(base.repo_root.join_component(".turbo")) + .context("could not create .turbo directory")?; + base.repo_config_mut()? + .set_team_id(Some(team_id.to_string()))?; + println!( " {} {} linked to {}