Skip to content

Instantly share code, notes, and snippets.

@arcolife
Created August 30, 2017 10:22
Show Gist options
  • Save arcolife/6352aa751727b7f918d893a5c067224b to your computer and use it in GitHub Desktop.
Save arcolife/6352aa751727b7f918d893a5c067224b to your computer and use it in GitHub Desktop.
rake cmdline help cfme
$ bundle exec rake --tasks
rake about # List versions of all Rails frameworks and the environment
rake app:template # Applies the template supplied by LOCATION=(/path/to/template) or URL
rake app:update # Update configs and some other initially generated files (or use just up...
rake assets:clean[keep] # Remove old compiled assets
rake assets:clobber # Remove compiled assets
rake assets:environment # Load asset compile environment
rake assets:precompile # Compile all the assets named in config.assets.precompile
rake cache_digests:dependencies # Lookup first-level dependencies for TEMPLATE (like messages/show or com...
rake cache_digests:nested_dependencies # Lookup nested dependencies for TEMPLATE (like messages/show or comments...
rake clean # Remove any temporary products
rake clobber # Remove any generated files
rake db:create # Creates the database from DATABASE_URL or config/database.yml for the c...
rake db:drop # Drops the database from DATABASE_URL or config/database.yml for the cur...
rake db:environment:set # Set the environment value for the database
rake db:fixtures:load # Loads fixtures into the current environment's database
rake db:migrate # Migrate the database (options: VERSION=x, VERBOSE=false, SCOPE=blog)
rake db:migrate:status # Display status of migrations
rake db:rollback # Rolls the schema back to the previous version (specify steps w/ STEP=n)
rake db:schema:cache:clear # Clears a db/schema_cache.dump file
rake db:schema:cache:dump # Creates a db/schema_cache.dump file
rake db:schema:dump # Creates a db/schema.rb file that is portable against any DB supported b...
rake db:schema:load # Loads a schema.rb file into the database
rake db:seed # Loads the seed data from db/seeds.rb
rake db:sessions:clear # Clear the sessions table
rake db:sessions:create # Creates a sessions migration for use with ActiveRecord::SessionStore
rake db:sessions:trim # Trim old sessions from the table (default: > 30 days)
rake db:setup # Creates the database, loads the schema, and initializes with the seed d...
rake db:size # Print data size for entire database
rake db:structure:dump # Dumps the database structure to db/structure.sql
rake db:structure:load # Recreates the databases from the structure.sql file
rake db:tables:size # Print data size for all tables
rake db:version # Retrieves the current schema version number
rake dev:cache # Toggle development mode caching on/off
rake dialogs:export[filename] # Exports all dialogs to a yml file
rake dialogs:import[filename] # Imports dialogs from a yml file
rake evm:assets:compile # Compile assets (clobber and precompile)
rake evm:automate:backup # Backup all automate domains to a zip file or backup folder
rake evm:automate:clear # Deletes ALL automate model information for ALL domains
rake evm:automate:convert # Convert the legacy automation model to new format ENV options FILE,DOM...
rake evm:automate:export # Export automate model information to a folder or zip file
rake evm:automate:extract_methods # Extract automate methods
rake evm:automate:import # Import automate model information from an export folder or zip file
rake evm:automate:list_class # Lists automate classes
rake evm:automate:reset # Reset the default automate domain(s) (ManageIQ and others)
rake evm:automate:restore # Restore automate domains from a backup zip file or folder
rake evm:automate:simulate # Method simulation
rake evm:automate:usage # Usage information regarding available tasks
rake evm:compile_sti_loader # Compile STI inheritance relationship cache
rake evm:db:backup:local # Backup the local ManageIQ EVM Database (VMDB) to a local file
rake evm:db:backup:remote # Backup the local ManageIQ EVM Database (VMDB) to a remote file
rake evm:db:destroy # Destroys the ManageIQ EVM Database (VMDB) of all tables, views and indices
rake evm:db:gc # clean up database
rake evm:db:region # Set the region of the current ManageIQ EVM Database (VMDB)
rake evm:db:reset # Resets the ManageIQ EVM Database (VMDB) of all tables, views and indices
rake evm:db:restore:local # Restore the local ManageIQ EVM Database (VMDB) from a local backup file
rake evm:db:restore:remote # Restore the local ManageIQ EVM Database (VMDB) from a remote backup file
rake evm:db:seed # Seed the ManageIQ EVM Database (VMDB) with defaults
rake evm:db:start # Start the local ManageIQ EVM Database (VMDB)
rake evm:db:stop # Stop the local ManageIQ EVM Database (VMDB)
rake evm:dbsync:destroy_local_region # Remove remote region data from local database
rake evm:dbsync:resync_excludes # Resync excluded tables
rake evm:deployment_status # Determine the deployment scenario
rake evm:export:alertprofiles # Exports all alert profiles to individual YAML files
rake evm:export:alerts # Exports all alerts to individual YAML files
rake evm:import:alertprofiles # Imports all alerts from individual YAML files
rake evm:import:alerts # Imports all alerts from individual YAML files
rake evm:join_region # Write a remote region id to this server's REGION file
rake evm:kill # Kill the ManageIQ EVM Application
rake evm:raise_server_event # Raise evm event
rake evm:restart # Restart the ManageIQ EVM Application
rake evm:start # Start the ManageIQ EVM Application
rake evm:status # Report Status of the ManageIQ EVM Application
rake evm:status_full # Report Status of the ManageIQ EVM Application
rake evm:stop # Stop the ManageIQ EVM Application
rake evm:update_start # Start updating the appliance
rake evm:update_stop # Stop updating the appliance
rake gettext:add_language[language] # add a new language
rake gettext:find # Update pot/po files
rake gettext:pack # Create mo-files
rake gettext:po_to_json # Convert PO files to JS files
rake gettext:store_model_attributes # write the model attributes to <locale_path>/model_attributes.rb
rake initializers # Print out all defined initializers in the order they are invoked by Rails
rake locale:extract_locale_names # Extract human locale names from translation catalogs and store them in ...
rake locale:extract_yaml_strings # Extract strings from various yaml files and store them in a ruby file f...
rake locale:plugin:find[engine] # Extract plugin strings - execute as: rake locale:plugin:find[plugin_name]
rake locale:po_to_json # Convert PO files from all plugins to JS files
rake locale:run_store_model_attributes # Run store_model_attributes task in i18n environment
rake locale:store_dictionary_strings # Extract strings from en.yml and store them in a ruby file for gettext:find
rake locale:store_model_attributes # Extract model attribute names and virtual column names
rake locale:update # Update ManageIQ gettext catalogs
rake log:clear # Truncates all/specified *.log files in log/ to zero bytes (specify whic...
rake manage_iq_schema:install:migrations # Copy migrations from manage_iq_schema to application
rake middleware # Prints out your Rack middleware stack
rake notes # Enumerate all annotations (use notes:optimize, :fixme, :todo for focus)
rake notes:custom # Enumerate a custom annotation, specify with ANNOTATION=CUSTOM
rake parallel:create[count] # create test databases via db:create --> parallel:create[num_cpus]
rake parallel:drop[count] # drop test databases via db:drop --> parallel:drop[num_cpus]
rake parallel:features[count,pattern,options] # run features in parallel with parallel:features[num_cpus]
rake parallel:features-spinach[count,pattern,options] # run features-spinach in parallel with parallel:features-spinach[num_cpus]
rake parallel:load_schema[count] # load dumped schema for test databases via db:schema:load --> parallel:l...
rake parallel:load_structure[count] # load structure for test databases via db:structure:load --> parallel:lo...
rake parallel:migrate[count] # update test databases via db:migrate --> parallel:migrate[num_cpus]
rake parallel:prepare[count] # update test databases by dumping and loading --> parallel:prepare[num_c...
rake parallel:rake[command,count] # launch given rake command in parallel
rake parallel:seed[count] # load the seed data from db/seeds.rb via db:seed --> parallel:seed[num_c...
rake parallel:setup[count] # setup test databases via db:setup --> parallel:setup[num_cpus]
rake parallel:spec[count,pattern,options] # run spec in parallel with parallel:spec[num_cpus]
rake parallel:test[count,pattern,options] # run test in parallel with parallel:test[num_cpus]
rake release # Release a new project version
rake restart # Restart app by touching tmp/restart.txt
rake routes # Print out all defined routes in match order, with names
rake secret # Generate a cryptographically secure secret key (this is typically used ...
rake stats # Report code statistics (KLOCs, etc) from the application or engine
rake test # Alias of 'test:vmdb'
rake test:brakeman # Run Brakeman
rake test:providers:azure # Run all azure specs
rake test:providers:azure:setup # Setup environment for azure specs
rake test:providers:lenovo # Run all lenovo specs
rake test:providers:lenovo:setup # Setup environment for lenovo specs
rake test:providers:vmware # Run all vmware specs
rake test:providers:vmware:setup # Setup environment for vmware specs
rake test:vmdb # Run all vmdb specs; Use PARALLEL=true to run in parallel
rake test:vmdb:setup # Setup environment for vmdb specs
rake test:vmdb_parallel # Run RSpec code examples in parallel
rake test:vmdb_sequential # Run RSpec code examples
rake time:zones[country_or_offset] # List all time zones, list by two-letter country code (`rails time:zones...
rake tmp:clear # Clear cache and socket files from tmp/ (narrow w/ tmp:cache:clear, tmp:...
rake tmp:create # Creates tmp directories for cache, sockets, and pids
rake webpacker # Lists all available tasks in webpacker
rake webpacker:check_node # Verifies if Node.js is installed
rake webpacker:check_webpack_binstubs # Verifies that bin/webpack & bin/webpack-dev-server are present
rake webpacker:check_yarn # Verifies if yarn is installed
rake webpacker:clobber # Remove the webpack compiled output directory
rake webpacker:compile # Compile javascript packs using webpack for production with digests
rake webpacker:install # Install webpacker in this application
rake webpacker:install:angular # Install everything needed for Angular
rake webpacker:install:elm # Install everything needed for Elm
rake webpacker:install:react # Install everything needed for React
rake webpacker:install:vue # Install everything needed for Vue
rake webpacker:verify_install # Verifies if webpacker is installed
rake webpacker:yarn_install[arg1,arg2] # Support for older Rails versions.Install all JavaScript dependencies as..
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment