I am trying to get the seed words from the powershell command prompt. Hence I am using the 'dotenv' in truffle.js
require('dotenv').config(); console.log('aa - process.env.MNEMONIC : '+mnemonic);
Later in powershell, I am issuing the command.
MNEMONIC="Let us code ICO" truffle migrate --reset --network ropsten
When I see the console log statement I see the value in "process.env.MNEMONIC " as undefined. Could you please help in resolve this error ?
Option 2: I have created the .env file and tried to access it in the truffle.js as shown below. Still I am unable to access it. The value still shows as undefined.