jets console
Important: These docs are for the outdated Jets 5 versions and below. For the latest Jets docs: docs.rubyonjets.com
Usage
jets console [options]
Description
REPL console with Jets environment loaded
Example
$ jets console
>> Post.table_name
=> "posts"
>> ActiveRecord::Base.connection.tables
=> ["schema_migrations", "ar_internal_metadata", "posts"]
>> Jets.env
=> "development"
>>
Use .env.development.remote
To use the remote values also in the jets console
you can use the JETS_ENV_REMOTE=1
env variable. Example:
JETS_ENV_REMOTE=1 jets console
More info at Env Files
Options
-e, [--environment=ENVIRONMENT] # Specifies the environment to run this console under (test/development/production).