# Cli login auth command

**URL:** <https://community.shopify.com/t/cli-login-auth-command/276220>\
**Category:** Authentication\
**Tags:** troubleshooting\
**Created:** [December 11, 2023, 3:16am UTC](https://community.shopify.com/t/cli-login-auth-command/276220 "2023-12-11T03:16:07Z")\
**Posts on this page:** 2\
**Page:** 1

## AI-generated summary

A user encountered an error when attempting to use a CLI login authentication command. The system prompted them to specify a store either by:

- Passing `--store {your_store_url}`
- Setting the `SHOPIFY_FLAG_STORE` environment variable

Another participant clarified that the standalone `login` command is no longer available in recent CLI versions. 

**Current solution:** Run `shopify theme dev --store myshopify.com` instead, as the store specification is now passed as a flag on the `dev` command rather than through a separate login step.

The issue appears resolved with this workaround, though the discussion remains brief.

<div class="post-metadata">

**Author:** ![solcabz](https://avatars.discourse-cdn.com/v4/letter/s/9fc29f/32.png) [@solcabz](https://community.shopify.com/u/solcabz)\
**Post date:** [December 11, 2023, 3:16am UTC](https://community.shopify.com/t/cli-login-auth-command/276220/1 "2023-12-11T03:16:07Z")

</div>

![solcabz_0-1702264218657.png](https://canada1.discourse-cdn.com/shopifyforum/original/3X/3/e/3e41cbb1641e3cd7d1975fdce29ec73c51b902e9.png)

can someone can explain why the cli command asking me to logout even im not login

│  
│ A store is required │  
│ │  
│ Specify the store passing --store={your\_store\_url} or set the │  
│ SHOPIFY\_FLAG\_STORE environment variable.

---

<div class="post-metadata">

**Author:** ![Liam](https://yyz1.discourse-cdn.com/shopifyforum/user_avatar/community.shopify.com/liam/32/223867_2.png) [@Liam](https://community.shopify.com/u/Liam)\
**Post date:** [December 11, 2023, 12:02pm UTC](https://community.shopify.com/t/cli-login-auth-command/276220/2 "2023-12-11T12:02:48Z")

</div>

Hi Solcabz,

I believe you’re seeing this error because the login command isn’t on recent versions of the CLI, it’s generally passed as a flag on the dev command.

You should run `shopify theme dev --store iconiqlast.myshopify.com`
