Your login
in one minute.
Step 01 Start Zitadel
startruns Zitadel on your machine.Users, passwords and sessions live there, not in your app.npx @zitadel/cli@latest startLocal Zitadel server is readyStep 02 Add the login
setupwrites the login pages into your app, with your user model and login flow as files beside them.npm run devserves them.npx @zitadel/cli@latest setup --framework next --server local- app/
profile/ page.tsxProfile page - proxy.tsNext.js proxy
- .zitadel/
schemas/ default-human-user.jsonUser model - .zitadel/
flows/ default-login.jsonLogin flow
+ package.json, .env.local, zitadel.json and more
Loading the components…
Step 03 Add a field
Add a property to the user schema, ask for it on the registration step, commit, do a dry run, deploy.The form shows it.
.zitadel/schemas/default-human-user.json"x-unique": "project"},"company": {"type": "string","description": "The user's company."}.zitadel/flows/default-login.json"fields": ["email""email","company"],npx @zitadel/cli@latest deploy --dry-runWould deploy 3 resources (dry run)npx @zitadel/cli@latest deployDeployed 3 resources Release sha256:a2807ed6b3c4 is now live on http://localhost:3000.Loading the components…
Step 04 Change the flow
Change what a step asks for and where it goes next, commit, do a dry run, deploy.The login follows.
Afteridentifier + passworddone"fields": ["email""email","x-auth-methods#password"],"name": "identifier","transitions": {"submit": {"target": "password""target": "done"},npx @zitadel/cli@latest deploy --dry-runWould deploy 3 resources (dry run)npx @zitadel/cli@latest deployDeployed 3 resources Release sha256:7166cbe0… is now live on http://localhost:3000.Loading the components…
Step 05 Match your brand
Set the login's design tokens in your own stylesheet.The look follows your app.Try it here.
zitadel-login {--zl-primary: #f25543;--zl-primary-foreground: #ffffff;--zl-ring: #f25543;--zl-link: #f25543;--zl-radius-md: 2px;--zl-radius-xl: 4px;--zl-font-family-heading: Georgia, "Times New Roman", serif;}Loading the components…
That's the whole loop
Get started with Zitadel now.
From the first command to a login that is yours in a minute.The quickstart walks you through it.