Skip to content

v2.1.0-rc2

Pre-release
Pre-release
Compare
Choose a tag to compare
@sfc-gh-pjob sfc-gh-pjob released this 07 Mar 13:39
· 643 commits to main since this release

New additions

  • Added ability to specify scope of the object list command with the --in <scope_type> <scope_name> option.

  • Introduced snowflake.cli.api.console.cli_console object with helper methods for intermediate output.

  • Added new --mfa-passcode flag to support MFA.

  • Added possibility to specify database and schema in snowflake.yml for snowpark objects. Also name can specify a fully qualify name.

  • New commands for spcs

    • Added image-registry url command to get the URL for your account image registry.
    • Added image-registry login command to fetch authentication token and log in to image registry in one command.
    • Added image-repository url <repo_name> command to get the URL for specified image repository.
    • Added create command for image-repository.
    • Added status, set (property), unset (property), suspend and resume commands for compute-pool.
    • Added set (property), unset (property),upgrade and list-endpoints commands for service.
  • Connections parameters are also supported by generic environment variables:

    • SNOWFLAKE_ACCOUNT
    • SNOWFLAKE_USER
    • SNOWFLAKE_PASSWORD
    • SNOWFLAKE_DATABASE
    • SNOWFLAKE_SCHEMA
    • SNOWFLAKE_ROLE
    • SNOWFLAKE_WAREHOUSE
    • SNOWFLAKE_MFA_PASSCODE
  • Introduced --pypi-download flag for snow snowpark package commands to replace -y and --yes

    The SNOWFLAKE_CONNECTION_<NAME>_<KEY> variable takes precedence before the generic flag. For example if
    SNOWFLAKE_PASSWORD and SNOWFLAKE_CONNECTIONS_FOO_PASSWORD are present and user tries to use connection
    "foo" then the later variable will be used.

  • Testing connection using snow connection test validates also access to database, schema, role and warehouse
    specified in the connection details.

  • Added snow connection set-default command for changing default connection.

Fixes and improvements

  • Restricted permissions of automatically created files
  • Fixed bug where spcs service create would not throw error if service with specified name already exists.
  • Logging into the file by default (INFO level)
  • Added validation that service, compute pool, and image repository names are unqualified identifiers.
  • spcs service commands now accept qualified names.
  • Updated help messages for spcs commands.