A command-line interace (CLI) for Uffizzi App
Uffizzi is an open-source engine for creating lightweight, ephemeral test environments for APIs and full-stack applications. Uffizzi enables teams to preview new features before merging and to mitigate the risk of introducing regressions into a codebase. Each preview gets a shareable URL that's updated when you push new commits or image tags, so teams can provide continual feedback during the development/QA process. Previews can be configured to expire or be destroyed when a pull request is closed, so environments exist only as long as they are needed. Uffizzi also helps deconflict shared development environments since previews are deployed as isolated namespaces—there is no risk of clobbering another developer's preview.
While Uffizzi depends on Kubernetes, it does not require end-users to interface with Kubernetes directly. Instead, Uffizzi leverages Docker Compose as its configuration file format, so developers do not need modify Kubernetes manifests or even know about Kubernetes.
Uffizzi is designed to integrate with any CI/CD system.
Uffizzi consists of the following components:
- Uffizzi App - The primary REST API for creating and managing Previews
- Uffizzi Controller - A smart proxy service that handles requests from Uffizzi App to the Kubernetes API
- Uffizzi CLI (this repository) - A command-line interface for Uffizzi App
To host Uffizzi yourself, you will also need the following external dependencies:
- Kubernetes (k8s) cluster
- Postgres database
- Redis cache
The Uffizzi CLI can be used interactively or as part of an automated workflow (e.g. GitHub Actions). Both options use the
uffizzi/cli container image available on Docker Hub.
Run the CLI as a Docker container in interactive mode:
docker run --interactive --rm --tty --entrypoint=sh uffizzi/cli
If you specify the following environment variables, the Docker image's entrypoint script can log you into Uffizzi before executing your command.
If you want to use Uffizzi as part of an automated workflow, you can pass the Uffizzi commands to the Docker run command. For example:
docker run -it --rm uffizzi/cli project list
Sample commands and examples
help subcommand can be used to see more information about a particular command.
uffizzi preview help
uffizzi project compose help
uffizzi login --server=localhost:8080 --email@example.com
Log in to the app with the specified server.
||Your email for logging in|
||The URL of the Uffizzi installation|
If server uses basic authentication you can specify options for it by setting
config set command.
Use this command to configure your cli app.
$ uffizzi config
Launching interactive setup guide that sets the values for
This command has 4 subcommands
uffizzi config list
Shows all options and their values from the config file.
uffizzi config get-value OPTION
Shows the value of the specified option.
uffizzi config set OPTION VALUE
Sets specified value for specified option. If a specified option already exists and has value it will be overwritten.
uffizzi config unset OPTION
Unsets specified option.
Use this command to configure your projects. This command has 2 subcommands
uffizzi project list
Shows all your projects' slugs
If you have only one project it will be added to your config file automatically, if there's more than one project you need to set up your project manually with the commands
uffizzi config set YOUR_PROJECT_SLUG or
uffizzi project set-default YOUR_PROJECT_SLUG
$ uffizzi project set-default PROJECT_SLUG
Create a preview from a compose file.
Sets the default project given with the given project slug. When set, all commands use this project as the default context unless overridden by the --project flag.
Create and manage previews
uffizzi preview create docker-compose.uffizzi.yml
Create a preview from a compose file.
uffizzi preview delete deployment-21
Delete a preview with preview ID
uffizzi disconnect CREDENTIAL_TYPE
Deletes credential of specified type
Supported credential types -
Bug reports and pull requests are welcome on GitHub at https://github.com/UffizziCloud/uffizzi_cli. See
CONTRIBUTING.md in this repository.