taste open

Open a taste package in your default editor. This command provides quick access to edit your taste files directly.


Basic usage

npx taste open <package>

ArgumentDescription
<package>Required. The name of the package to open.

OptionShortDescription
--global-gOpen package from global (~/.commandcode/taste)

Open a local package

Open local

npx taste open cli

Opens the cli taste package from your local project in your default editor.

Open from global

Open global

npx taste open cli -g

Opens the cli package from your global at ~/.commandcode/taste.


Example output

āœ“ Opened 'cli' taste package from project

The command uses your system's default editor set via the $EDITOR environment variable. If not configured, you'll see setup instructions:

Editor setup

# VS Code echo 'export EDITOR="code"' >> ~/.zshrc # Vim echo 'export EDITOR="vim"' >> ~/.zshrc # Nano echo 'export EDITOR="nano"' >> ~/.zshrc # Sublime Text echo 'export EDITOR="subl"' >> ~/.zshrc

After adding the export, restart your terminal or run source ~/.zshrc.


  • Opens the taste file in your default editor
  • For category-specific files: Opens at line 1
  • For main taste.md files: Searches for the category heading and opens at that line
  • Automatically navigates to the correct location in the file
Tip

After editing a taste file, use npx taste lint to validate your changes before pushing.