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
- Install the CLI globally:
npm i -g @darastr/cli. - 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. - 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>ordaras login --token <token>. - Run
daras whoamito check which account and store the active session is connected to and whether the token is valid. - 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 withdaras env use <name>;daras env listlists all profiles, anddaras env remove <name>deletes a profile. - To sign out, run
daras logout(active profile) ordaras logout --all(all profiles).
Tips
daras updateupdates the CLI to the latest version on npm;daras versionshows the installed version.- Type
daras helpto see brief help for every command.