当前位置:首页 >新闻详情

2019-10-12 17:09:30 来源:鸿禾娱乐-鸿禾娱乐手机版-鸿禾娱乐官网 浏览次数 13

  您好,拜读文章后学到了很多。但是我安装的truffle 怎么完全没有deploy 命令?truffle init 和truffle serve 都可以执行,是最新版本修改了部署合约的方法了么?

  Truffle v2.0.8 - a development framework for Ethereum

  Usage: truffle [command] [options]

  Commands:

  build => Build development version of app

  compile=> Compile contracts

  console=> Run a console with deployed contracts instantiated and available (REPL)

  create:contract=> Create a basic contract

  create:migration=> Create a new migration marked with the current timestamp

  create:test=> Create a basic test

  exec => Execute a JS file within truffle environment

  init => Initialize new Ethereum project, including example contracts and tests

  list => List all available tasks

  migrate=> Run migrations

  networks=> Show addresses for deployed contracts on each network

  serve => Serve app on localhost and rebuild changes as needed

  test => Run tests

  version=> Show version number and exit

  watch => Watch filesystem for changes and rebuild the project automatically