@@ -159,6 +159,7 @@ def project_health(
159159@click .option ("--catalog-path" , required = False , prompt = False , help = "Path to the catalog file." )
160160@click .option ("--run-results-path" , required = False , prompt = False , help = "Path to the run_results.json file." )
161161@click .option ("--sources-path" , required = False , prompt = False , help = "Path to the sources.json file (source freshness results)." )
162+ @click .option ("--semantic-manifest-path" , required = False , prompt = False , help = "Path to the semantic_manifest.json file." )
162163def onboard (
163164 token ,
164165 instance_name ,
@@ -170,6 +171,7 @@ def onboard(
170171 catalog_path ,
171172 run_results_path ,
172173 sources_path ,
174+ semantic_manifest_path ,
173175):
174176 """Onboard a manifest file to DBT. You can specify either --dbt_integration_id or --dbt_integration_name."""
175177
@@ -270,6 +272,16 @@ def onboard(
270272 else :
271273 click .echo (f"{ response ['message' ]} " )
272274
275+ if semantic_manifest_path :
276+ response = onboard_file (
277+ token , instance_name , dbt_integration_id , dbt_integration_environment , "semantic_manifest" , semantic_manifest_path , backend_url
278+ )
279+ if response ["ok" ]:
280+ click .echo ("Semantic manifest onboarded successfully!" )
281+ artifacts_uploaded .append ("semantic_manifest" )
282+ else :
283+ click .echo (f"{ response ['message' ]} " )
284+
273285 # Start ingestion
274286 response = start_dbt_ingestion (token , instance_name , dbt_integration_id , dbt_integration_environment , backend_url )
275287 if response ["ok" ]:
0 commit comments