Blueprints (bprint)

Blueprint (bprint) command enables inclusive management of Atomic Infrastructure™ blueprints and artifacts. See Quick Start for a step-by-step guide.

Usage

bricks bp [flags]
bricks bp [command]

Aliases

bprint, blueprint, bp

Available Commands

add

Adding a registry-saved blueprint to the blueprint available in the working directory.

Help information for blueprint add

Usage:
  bricks bprint add [package] [flags]

Flags:
      --props string        A pointer to a JSON file that include the properties to associate with the package.
      --props-file string   A JSON string of properties to associate with the package. This way a IaC turning opinionated.
      --version string      Package version.

Global Flags:
      --config string   config file (default is $HOME/.bricks/config.yaml)
  -h, --help            Print Help message for Bricks CLI

Example

add-repo

Adding remote git repository URL to the blueprint available in the working directory.

Example

bump

Update the version saved in the working folder bricks.json file.

Example

create

Create a new IaC module for an existing blueprint. Adding a Terraform scaffolding to an Atomic Infrastructure™ blueprint or an artifact.

Creation can be done after blueprint initialization, see bricks bprint init.

Example

describe

Print the bricks.json registry version of a blueprint

Example

disable

Mark the blueprint as disabled for use in the organization. Disabled blueprints can't be installed.

Example

enable

Mark the blueprint as enabled for use in the organization.

Example

fetch

Download the provided blueprint from the registry

Example

get

Get the output values or input properties of a blueprint

Example

init

Initialize an empty Atomic Infrastructure™ project locally by creating bricks.json file. Learn more about bricks.json here.

Example

prepare

Ensure blueprint's Terraform files suites Atomic Infrastructure™ concept.

Executing a prepare command is highly recommended before publishing a blueprint.

Example

publish

Upload blueprint files to Bluebricks' package registry and assign an immutable version for future installation. See Quick Start to learn more about the publishing workflow.

Example

remove

Delete a link to another blueprint that was added using add command.

Example

Conduct a remote search in the Bluebricks registry of the provided query.

Example

  • The results are limited to 10 rows

  • Each row includes the following columns (from left to right):

    • Version

    • Name

    • Enable/Disable - indicate whether the Blueprint can be installed or not

    • Number of Downloads

    • Creation Date

    • Git Repository URL

update

Update nested blueprint in a bricks.json file.

Using update command, users can upgrade or downgrade packages.

Example

view

List all available versions of the provided blueprint or artifact.

Example

  • Each row includes the following columns (from left to right):

    • Version

    • Number of Downloads

    • Creation Date

state-config

Create a backend.tf file for an Artifact pointing to a remote state for local development.

Available only for Terraform and OpenTofu Artifacts

Example

Fetch remote state configuration for deployment with slug my-sqs-prod:

The bricks bp state-config command retrieves the remote Terraform/OpenTofu state configuration for the specified deployment slug and performs the following actions:

  • Generates a backend.tf file in the current directory containing the remote state configuration.

  • Includes a variables map creates a temporary Terraform/OpenTofu variables file (bbx-temp-terraform.auto.tfvars) with the properties from the last successful deployment

.tfvars will automatically load by Terraform/OpenTofu.

  • Enables seamless local development with the same configuration as the deployed environment.

Last updated

Was this helpful?