v2.1.0
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
andschema
in snowflake.yml for snowpark objects. Alsoname
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 forimage-repository
. - Added
status
,set (property)
,unset (property)
,suspend
andresume
commands forcompute-pool
. - Added
set (property)
,unset (property)
,upgrade
andlist-endpoints
commands forservice
.
- Added
-
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 forsnow 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
andSNOWFLAKE_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.