Skip to content

Using a development version of Saké

Ashley Gibson edited this page Jul 4, 2024 · 4 revisions

Follow these steps to use a development version of Saké in a plugin repo. Useful for testing changes to build or deploy processes without cowboy coding in this repo. 🤠

  1. Make sure you have cloned this repo locally
  2. cd into your sake repo directory, ie cd ~/code/skyverge/sake
  3. Run npm install
  4. Run npm link - this will create a symlink to the sake binary, so you can run sake from your CLI
  5. Navigate to a plugin repo and use sake instead of npx sake, for example: sake config
  6. Tip! You can still use npx sake to use the local version installed in the plugin repo

Note

In the eventuality that running sake throws errors, you should verify that the right version of sake is being used. This may happen if you have used npm link with sudo in some Linux installations.

Try to run which sake or sudo which sake to see which copies of sake you have. A workaround could be to try running sake with full path as /usr/bin/sake (depending on which output) to see if issues are resolved. Although You could symlink this version to avoid having to type full path each time.

Clone this wiki locally