rsconnect-python
                                
                                 rsconnect-python copied to clipboard
                                
                                    rsconnect-python copied to clipboard
                            
                            
                            
                        [Question] Adding a custom URL to an app during deployment
Is it possible to add a custom URL to the app while deploying content? For example, the R package for the Posit API has set_vanity_url has this functionality, I was wondering what the equivalent of that is in the Python CLI.
I didn't find an option for this in the deploy subcommand.
There isn't currently a way to set a vanity URL during deployment with rsconnect-python.
As an alternative, you can set a vanity URL using Connect's API with curl or another HTTP client as described in the Connect API documentation. You'll need to pass an API key issued by an administrator-level user in the Authorization header, unless your Connect instance is configured to allow publishers to manage vanity URLs.
Understood.
For Connect instances where publishers are allowed to set and manage vanity URLs, it would be nice to have the Python CLI do this out of the box, that is, infer the GUID of the application post deployment and set the vanity URL for the application/content GUID.
Post-processing is okay, but having this flag would allow developers and deployers (think data scientists who use this on a daily) to be able to simply supply that option to set the URL.