Deploy your first application
Go from an empty control plane to a running application: load modules from the catalog, create a project, add a service, launch an environment, and release.
The fastest path to a visible win: an application running on Facets, in six steps. Each step links into Using Facets if you want the full picture.
Before you start
| You need | Why |
|---|---|
| A Facets tenant you can sign in to (hosted or self-hosted) | The control plane you deploy from |
| The Praxis CLI installed and logged in | This quickstart uses raptor, the Praxis CLI binary that drives the control plane |
| A cloud account and a Git account connected | So Facets can provision infrastructure and store your project's blueprint |
| Git and Terraform on your machine | Git clones Facets' module catalog. Uploading a module runs Terraform's checks on it first |
The example uses a project called checkout, an environment called dev, and a service called web. Substitute your own names.
1. Load modules and create a project type
A new control plane has no modules to build from. Load the ones a service needs on your cloud from Facets' module catalog, with the Praxis CLI. The console has no route for this.
Clone the catalog, then register the output types its modules use to connect to each other:
git clone https://github.com/Facets-cloud/facets-modules-redesign.git ./reference-modules
raptor create output-type -f ./reference-modules/outputs --if-absentThen upload the five modules a service needs on your cloud: the cloud account, network, cluster, node pool and the service itself. --auto-create registers a module's type, such as service, the first time one is uploaded. --publish takes the module out of preview, where only test projects can use it.
raptor create iac-module -f ./reference-modules/modules/cloud_account/aws_provider/1.0 --auto-create --publish
raptor create iac-module -f ./reference-modules/modules/network/aws_network/1.0 --auto-create --publish
raptor create iac-module -f ./reference-modules/modules/kubernetes_cluster/eks_automode/1.0 --auto-create --publish
raptor create iac-module -f ./reference-modules/modules/kubernetes_node_pool/eks_automode/1.0 --auto-create --publish
raptor create iac-module -f ./reference-modules/modules/service/aws/1.0 --auto-create --publishraptor create iac-module -f ./reference-modules/modules/cloud_account/gcp_provider/1.0 --auto-create --publish
raptor create iac-module -f ./reference-modules/modules/network/gcp_network/1.0 --auto-create --publish
raptor create iac-module -f ./reference-modules/modules/kubernetes_cluster/gke/1.0 --auto-create --publish
raptor create iac-module -f ./reference-modules/modules/kubernetes_node_pool/gcp/1.0 --auto-create --publish
raptor create iac-module -f ./reference-modules/modules/service/gcp/1.0 --auto-create --publishraptor create iac-module -f ./reference-modules/modules/cloud_account/azure_provider/1.0 --auto-create --publish
raptor create iac-module -f ./reference-modules/modules/network/azure_network/1.0 --auto-create --publish
raptor create iac-module -f ./reference-modules/modules/kubernetes_cluster/aks/1.0 --auto-create --publish
raptor create iac-module -f ./reference-modules/modules/kubernetes_node_pool/azure/1.0 --auto-create --publish
raptor create iac-module -f ./reference-modules/modules/service/azure/1.0 --auto-create --publishLast, create a project type. Every project needs one, and it decides which modules the project can use. Without --resource-type, it allows every published module:
raptor create project-type platform --description "Modules for our services"See Load modules from the catalog to pick other modules, and Project Types to limit which modules a project can use.
2. Create a project
A project holds one blueprint of resources that you deploy across environments. Create one with the project type you just created.
Using prompt
Create a project called checkout from the platform project type, in my Git account my-github.or
Using command
# See the project types and your Git accounts, and their names
raptor get project-types
raptor get accounts --type VERSION_CONTROL
# Create the project in one of your Git accounts
raptor create project checkout --project-type platform --vcs-account my-github --description "Checkout service"New to the CLI? Install it first.
- Go to the Projects tab and click Create Project.
- Enter a Project Name and an optional Description.
- Select a Git Account to hold the project's repository.
- Choose the Project Type you created in step 1.
- Choose the Environments you want (for example
dev). - Click Create.
See Projects for blueprints, environments, and importing an existing repo.
3. Add a service and point it at an image
A service is how your application runs on Facets. It runs on a cluster, so the blueprint also needs the cloud account, network, cluster and node pool you loaded in step 1. Add those, then the service, then attach the container image it should run.
Using prompt
Add a service called web to checkout, with the cloud account, network, cluster and node pool it runs on, then attach gcr.io/my-project/checkout:v1 to it in dev.or
Using command
# See which modules your project type allows
raptor get resource-types -p checkout
# See what a module needs from other resources (its inputs)
raptor describe module service/<flavor>/<version>
# Add the cloud account, network, cluster and node pool, then the service.
# --input wires one of a resource's inputs to another resource
raptor apply resource <type>/<flavor>/<version> -n <name> -p checkout --input <input>=<type>/<name>
raptor apply resource service/<flavor>/<version> -n web -p checkout --input <input>=<type>/<name>
# Point it at an image for the dev environment
raptor set artifact-uri -p checkout -e dev web --uri gcr.io/my-project/checkout:v1New to the CLI? Install it first.
- In the Blueprint tab, create a resource for each of the cloud account, network, cluster and node pool. Then create a Service resource and click Configure.
- Open the service's Images tab and select Manual Attach.
- Choose the
devenvironment, click Attach Image, enter the full image URL (for examplegcr.io/my-project/checkout:v1), and click Attach.
To build images automatically from your branches instead of pinning one, see Attach image and CI/CD workflow.
4. Launch the environment
Before you can deploy, the environment has to be launched, which provisions its cloud infrastructure (network, cluster, storage) from your blueprint. Launch bootstraps that infrastructure without deploying your resources yet.
Using prompt
Create and launch an environment called dev in checkout.or
Using command
raptor create environment dev -p checkout --launch -w
# If the environment already exists but is stopped, launch it instead
raptor launch environment dev -p checkout -w-w waits and tails the logs until the launch finishes.
New to the CLI? Install it first.
Open the Launch Wizard from the Environment Overview page and click Launch. The wizard walks you through choosing infrastructure, enabling resources, configuring them, and setting secrets, then provisions the environment. See Dynamic Launch for the full wizard.
5. Deploy your application
A release applies your blueprint to the launched environment, deploying the service and its image.
Using prompt
Release checkout to dev and wait for it to finish.or
Using command
raptor create release -p checkout -e dev -wWith no type flags this is a full release. -w waits for it to finish and tails its logs.
New to the CLI? Install it first.
- Open Projects and select your project, then the Environments tab and the
devenvironment. - Click Release.
- Under Release type, choose Full Release.
- Click Review release, then Release to deploy.
See Releases for selective and custom releases, plans, and rollout strategies.
6. Confirm it is running
When the release finishes, the environment shows as Running. Open the Resource Center (or the Environment Overview) to see your web service live, with its status, logs, and metrics.
To make the application reachable on a custom domain, add an ingress resource, map the domain, and add the CNAME record at your DNS provider. See Exposing to the internet.
You now have a running application
That is the whole path: modules loaded from the catalog, a project, a service pointed at an image, a launched environment, and a release that put it on your cloud. To go deeper:
- Load modules from the catalog: pick other modules, and publish the ones you upload.
- Project Types: which modules a project can use, and how to limit them.
- Projects: blueprints, environments, and resources.
- Releases: how deployments plan, apply, and promote.
Deploy with an AI agent
Describe the outcome to your AI coding agent and it drives the Praxis CLI to stand up a running service on your cloud, with no cloud credentials on your laptop.
Project Types
A project type is the template projects start from: its starting blueprint, IaC tool, cloud settings, and guardrails on which modules a project can use.