I want to know when deploying smart contract using truffle, is there a way to do that without using the migration files?
I won't be requiring the Migration features.

  • Do you want to avoid using truffle migrate at all or do you want to avoid having Migration.sol contract?
    – ivicaa
    Commented Sep 11, 2018 at 9:35
  • I want to avoid deploying Migration.sol Commented Sep 11, 2018 at 12:10

1 Answer 1


You can use the -f parameter to start at an arbitrary migration step. In this case, the Migration contract will be ignored.

See https://truffleframework.com/docs/truffle/reference/truffle-commands#migrate and https://github.com/trufflesuite/truffle/issues/503

  • -f parameter is not helping. Still 2 contracts are being created. Commented Sep 11, 2018 at 12:21
  • Just tested it on my side. It works. I can deploy without a reference to the Migration contract. Did you delete the build folder before the test?
    – ivicaa
    Commented Sep 11, 2018 at 12:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.