SwipeUI
DocsCLI

login and logout

Save your Pro licence key for the CLI, or remove it.

npx @swipeui/cli login

login asks for your licence key, checks it with the SwipeUI API, then saves it as SWIPEUI_LICENSE_KEY in .env.local. You can also pass the key as an argument: npx @swipeui/cli login <key>.

npx @swipeui/cli logout

logout removes the key from .env.local.

Where the key goes

  • .env.local: the shadcn CLI reads this file too, so npx shadcn add finds your key without extra setup.
  • Never EXPO_PUBLIC_: variables with that prefix are bundled into your app. login never uses it, and doctor warns if it finds the key there.
  • Gitignored: login makes sure .env*.local is in your .gitignore before it writes.

In CI

Skip login and set SWIPEUI_LICENSE_KEY as a secret environment variable instead. See Configuration.

On this page