thisbythem / stag

The Statamic CLI

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Problems Installing Stag

mindmergedesign opened this issue · comments

I have followed the instructions step by step on how to Install Stag but it won't work. This is what I have done so far:

  1. downloaded stag and renamed the folder to stag
  2. dropped the folder under _add-ons folder
  3. added export PATH=$PATH:/_add-ons/stag/bin to my shell config
  4. reloaded my config file: source ~/.bash_profile
  5. navigate to my statamic site root folder and type stag

I get the following error: zsh: command not found: stag

NOTE: I am using Oh My ZSH as my shell

You can confirm that stag is installed properly but running the command with the full path. On the command line in your Statamic root, run: _add-ons/stag/bin/stag Does that work?

I think I've got a typo in the path. Can you try updating the PATH line in your shell config to: export PATH=$PATH:_add-ons/stag/bin

I'm not super familiar with zsh, but you'll need to make sure you add that PATH line to whatever your shell config is. And then run the source command on that line. I would imagine your zsh config isn't .bash_profile, and running source on that file is picking up the values in that file.

@nobodyiscertain I think it was the typo in the path. It is working now! Thanks for your help.

Thanks for finding that @mindmergedesign. I've updated it in the README.