The ML export command is used to export an existing machine learning model from SurrealDB.
BEFORE YOU STARTMake sure you’ve installed SurrealDB — it should only take a second!
| Arguments | Description | |
|---|---|---|
| 
 | Sets the url of the database server to connect to | |
| 
 | Sets master username for the database | |
| 
 | Sets master password for the database | |
| 
 | Sets the authentication token to use when connecting to the server. Connect to SurrealDB using a JWT instead of user credentials | |
| 
 | Sets the desired namespace in which to import data | |
| 
 | Sets the desired database into which to import data | |
| 
 | Represents the name of the model that you want to export | |
| 
 | Represents the version of the model that you want to export | |
| Arguments | Description | |
|---|---|---|
| 
 | Sets the path to the file which should be exported | |
To perform a SurrealQL database import from a local file, in a terminal run the surreal import command with the required arguments.
surreal ml export --conn http://localhost:8000 --user root --pass secret --ns test --db test --name my-surrealml-model --version 1.0.0 my-surrealml-model.surml
Using token-based authentication:
surreal ml export --conn http://localhost:8000 --token <token> --ns test --db test --name my-surrealml-model --version 1.0.0 my-surrealml-model.surml
To see the help information and usage instructions, in a terminal run the surreal ml export --help command without any further arguments. This command gives general information on the arguments, inputs, and additional options for the ml export command.
surreal ml export --help
The output of the above command :