Skip to content
Daras
All topics

Installing Daras CLI and signing in to your store

Daras CLI (the daras command) is the official command-line tool for theme development, webhooks, and app management from your terminal; it also bundles @daras/theme-kit.

Steps

  1. Install the CLI globally: npm i -g @darastr/cli.
  2. Run daras login; the terminal displays a verification code and opens the "Daras CLI erişim isteği" (Daras CLI access request) page in the Daras partner dashboard in your browser. Sign in with your partner account, verify that the code matches the one in your terminal, and click the "Erişime İzin Ver" (Allow Access) button; the session is saved to your terminal.
  3. Browser authorization works only with partner accounts. To connect with your store account or run in a CI/script environment, use daras login --email <email> --password <password> or daras login --token <token>.
  4. Run daras whoami to check which account and store the active session is connected to and whether the token is valid.
  5. If you work with multiple environments (for example, production and test stores), add a profile with daras env add <name> --url <url> --token <token> --store <id> and switch to it with daras env use <name>; daras env list lists all profiles, and daras env remove <name> deletes a profile.
  6. To sign out, run daras logout (active profile) or daras logout --all (all profiles).

Tips

  • daras update updates the CLI to the latest version on npm; daras version shows the installed version.
  • Type daras help to see brief help for every command.
Didn't find the answer?Open a request from the Daras support screen in your store panel.
Open a support request