```ruby
require "vmc/plugin"
require "console-vmc-plugin/console"

module VMCConsole
  class Console < VMC::CLI
    desc "Open a console connected to your app"
    group :apps, :manage
    input :app, :argument => :required, :from_given => by_name("app"),
      :desc => "App to connect to"
    input :port, :default => 10000
    def console
      app = input[:app]

      console = CFConsole.new(client, app)
      port = console.pick_port!(input[:port])

      with_progress("Opening console on port #{c(port, :name)}") do
        console.open!
        console.wait_for_start
      end

      console.start_console
    end

    filter(:start, :start_app) do |app|
      if app.framework.name == "rails3"
        app.console = true
      end

      app
    end
  end
end
```

Provision console port for buildpack framework
user
```ruby
require "vmc/plugin"
require "console-vmc-plugin/console"

module VMCConsole
  class Console < VMC::CLI
    desc "Open a console connected to your app"
    group :apps, :manage
    input :app, :argument => :required, :from_given => by_name("app"),
      :desc => "App to connect to"
    input :port, :default => 10000
    def console
      app = input[:app]

      console = CFConsole.new(client, app)
      port = console.pick_port!(input[:port])

      with_progress("Opening console on port #{c(port, :name)}") do
        console.open!
        console.wait_for_start
      end

      console.start_console
    end

    filter(:start, :start_app) do |app|
      if app.framework.name == "rails3" || app.framework.name == "buildpack"
        app.console = true
      end

      app
    end
  end
end
```
assistant