Skip to content

CLI

3.2.0

Added

  • Short option aliases. Common flags now have single-character forms: -C (--directory), -e (--environment), -v (--verbose), -q (--quiet), -s (--scope), -y (--auto-approve), -f (--force), -o (--out / --out-dir), and -p (--plan-file).
  • Tab-completion for environment names. --environment <TAB> now completes the environment names discovered from the project’s *.env.<name>.sql files.

3.1.0

Added

  • SQLite Support. Use:
    PROVIDER sqlite (
    connection_string = 'Data Source=app.db'
    )
    Connection string may also be supplied separately via the NSCHEMA_SQLITE_CONNECTION_STRING environment variable.
  • SQL Server Support. Use:
    PROVIDER sqlserver (
    connection_string = 'Server=localhost;Database=app'
    )
    Credentials and command timeout may also be supplied separately, via the username / password /command_timeout block attributes or the NSCHEMA_SQLSERVER_CONNECTION_STRING / NSCHEMA_SQLSERVER_USERNAME / NSCHEMA_SQLSERVER_PASSWORD environment variables.

3.0.0

Initial release of the NSchema CLI. dotnet tool install -g nschema

See https://nschema.dev for full documentation.