Ganache-cli: How to keep accounts

Created on 22 Feb 2018  路  4Comments  路  Source: trufflesuite/ganache-cli

Unfortunately, unlike the ganache application, ganache-cli creates completely new accounts on each restart. This is very annoying, because I always have to reimport a new account into my metamask to test my application.

Is there a way to keep the accounts in ganache-cli as well?

  • Version used: 6.1.0-beta
  • Version of Truffle/Remix/Other tools used: 4.0.6
  • NodeJS Version: 8.2.1
  • Operating System and version (include distro if Linux): Windows 10

Most helpful comment

run ganache-cli --deterministic to your options, this is insecure btw.

All 4 comments

Ok, figured it out.

In the future your best bet is to ask questions like these in the Truffle gitter.

@DavidKuennen obviously there is no point of actually answering your own question once you found the answer.

run ganache-cli --deterministic to your options, this is insecure btw.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

zatsepinvl picture zatsepinvl  路  5Comments

leopoldjoy picture leopoldjoy  路  3Comments

SCBuergel picture SCBuergel  路  5Comments

xavierlepretre picture xavierlepretre  路  5Comments

mariam-crissi picture mariam-crissi  路  6Comments