Star

Created With

linktyfon build

storage Server-Side Command

alt_route Alias: tyfon b



Generates necessary networking code and SDK metadata. Will automatically be called by tyfon serve on the first run when not built or built using an older version of TyFON. Will call tyfon init if not initialized.

👉 WILL NOT be triggered automatically when server-code changes. You need to run it manually before you update client SDKs.

1link$tyfon build

# # 🏗️ Building network layer code and client SDK metadata ... # # # ✅ Network layer code and client SDK metadata built! 🍻 #

linkBuilding Docker Images

👉 Requires Docker to be installed!

You can provide -i or --image option to build a production Docker image instead of building to local file system:

1link$tyfon build --image my-tyfon-server

# # 🚢 Building docker image my-tyfon-server ... # ... # # ✅ Docker image my-tyfon-server successfully built! # # 👉 Test the image locally: # $ docker run -it -p 8000:8000 my-tyfon-server # # 🚀 Deploy the image: # $ docker push my-tyfon-server #

👉 If you want to push to a custom registry, simply do this:

1link$docker tag my-tyfon-server https://my-registry.cloud/my-tyfon-server

2link$docker push https://my-registry.cloud/my-tyfon-server

Learn More



tyfon buildBuilding Docker Images

Home Conventions Error Handling

CLI Referencechevron_right
Advanced Usagechevron_right