Prerequisites
Before deploying, make sure you have:- A valid
linkapp.config.tswith requiredmanifestfields - A production build in
dist/(or linkapp will build automatically) - Authentication credentials (run
npx @linktr.ee/linkapp loginfirst)
Authenticate
Log in to Linktree before your first deployment:~/.config/linkapp/auth-token.json.
Deploy your LinkApp
Deploy to production:Deploy to QA
To deploy to the QA environment:Deployment process
When you runlinkapp deploy:
- Validates your project and config
- Builds the app (if needed)
- Uploads to Linktree
Deployment flags
Example:
After deployment
After a successful deployment, you’ll see:Troubleshooting
Validation errors
If you see config validation errors:linkapp.config.ts and redeploy.
Bundle size warnings
If your bundle exceeds 5MB:Authentication errors
If you see401 Unauthorized:
Build errors
If the build fails during deployment:Config schema errors
Check your config against the schema:Deployment fails
Enable verbose logging:Multiple environments
You can maintain separate LinkApps for development and production:linkapp.config.ts
CI/CD integration
Deploy from CI/CD pipelines:.github/workflows/deploy.yml
Next steps
CLI Reference
See all deploy command options
Build
Learn about the build process