Skip to content

Instantly share code, notes, and snippets.

@rpietro
Created December 14, 2014 01:49
Show Gist options
  • Save rpietro/5e614b5e58d2cbb0ed5f to your computer and use it in GitHub Desktop.
Save rpietro/5e614b5e58d2cbb0ed5f to your computer and use it in GitHub Desktop.
orientdb commands

Orientdb available commands:

  • alter class Alter a class in the database schema
  • alter cluster Alters a cluster in the current database. The cluster can be physical or memory
  • alter database Alter a database property
  • alter property Alter a class property in the database schema
  • backup database Backup a database
  • begin Begins a transaction. All the changes will remain local
  • browse class Browse all records of a class
  • browse cluster Browse all records of a cluster
  • check database Check database integrity
  • cluster status Displays the status of the cluster nodes
  • commit Commits transaction changes to the database
  • compare databases Compare two databases
  • config Return all the configuration values
  • config get Return the value of a configuration value
  • config set Change the value of a configuration value
  • connect Connect to a database or a remote Server instance
  • copy database Copy a database to a remote server
  • create class Create a class
  • create cluster Create a new cluster in the current database. The cluster can be physical or memory
  • create database Create a new database
  • create datasegment Create a new data-segment in the current database.
  • create edge Create a new edge into the database
  • create function Create a stored function
  • create index Create an index against a property
  • create link Create a link from a JOIN
  • create property Create a property
  • create vertex Create a new vertex into the database
  • current Display current record
  • declare intent Declare an intent
  • delete Delete records from the database
  • dictionary get Loook up a record using the dictionary. If found, set it as the current record
  • dictionary put Insert or modify an entry in the database dictionary. The entry is comprised of key=String, value=record-id
  • dictionary remove Remove the association in the dictionary
  • disconnect Disconnect from the current database
  • display raw record Display a record as raw bytes
  • display record Display current record attributes
  • drop class Remove a class from the schema
  • drop cluster Remove a cluster in the current database. The cluster can be physical or memory
  • drop database Delete the current database
  • drop database Delete the specified database
  • drop index Remove an index
  • drop property Remove a property from a class
  • eval Evaluate a predicate against current record
  • explain Explain how a command is executed profiling it
  • export database Export a database
  • export record Export the current record in the requested format
  • export schema Export a database schema
  • find references Find all references the target record id @rid
  • flush database Flushes all database content to the disk
  • freeze cluster Freeze clusters and flush on the disk
  • freeze database Freeze database and flush on the disk
  • get Return the value of a property
  • grant Grant privileges to a role
  • gremlin Execute a GREMLIN script
  • import database Import a database into the current one
  • info Display information about the database
  • info class Display the schema of a class
  • insert Insert a new record into the database
  • js Execute javascript commands in the console
  • jss Execute javascript commands against a remote server
  • list classes Display all the configured classes
  • list clusters Display all the configured clusters
  • list databases List all the databases available on the connected server
  • list indexes Display all indexes
  • list properties Display the database properties
  • load record Load a record in memory and set it as the current
  • load record Load a record in memory using passed fetch plan
  • move Move from current record by evaluating a predicate against current record
  • next Move the current record cursor to the next one in result set
  • prev Move the current record cursor to the previous one in result set
  • profiler Execute a command against the profiler
  • properties Return all configured properties
  • pwd Display the current path
  • rebuild index Rebuild an index if it is automatic
  • release cluster Release cluster after freeze
  • release database Release database after freeze
  • reload record Reload a record and set it as the current one
  • reload record Reloads a record using passed fetch plan
  • reload schema Reload the database schema
  • repair database Repair database structure
  • restore database Restore a database into the current one
  • revoke Revoke privileges to a role
  • rollback Rolls back transaction changes to the previous state
  • script Execute a script containing multiple commands separated by ; or new line
  • select Execute a query against the database and display the results
  • set Change the value of a property
  • show holes Shows the holes in current storage
  • sleep Sleep X milliseconds
  • transactional Executes a command inside a transaction
  • traverse Traverse records and display the results
  • truncate class Truncate the class content in the current database
  • truncate cluster Truncate the cluster content in the current database
  • truncate record Truncate a record deleting it at low level
  • update Update records in the database
  • upgrade graph Migrates graph from OMVRBTree to ORidBag
  • help Print this help
  • exit Close the console
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment