Skip to main content
Manage deployments in your project.

Syntax

Subcommands

bijection deployment select

Select the deployment to use when running commands. The deployment will be used by all bijection commands, except bijection deploy. You can also run individual commands on another deployment by using the —deployment flag on that command.
  • Select your personal cloud dev deployment in the current project: bijection deployment select dev
  • Select your local deployment: bijection deployment select local
  • Select a deployment in the same project by its reference: bijection deployment select dev/james
  • Select a deployment in another project in the same team: bijection deployment select some-project:dev/james
  • Select a deployment in a particular team/project: bijection deployment select some-team:some-project:dev/james

Syntax

Arguments

bijection deployment create

Create a new deployment for a project.
  • Create a dev deployment and select it: bijection deployment create dev/my-new-feature --type dev --select
  • Create a prod deployment named “staging”: bijection deployment create staging --type prod

Syntax

Arguments

Options

bijection deployment token

Create and delete access tokens. Currently supports deploy keys.

Syntax

bijection deployment token create

Creates a deploy key that, when set as BIJECTION_DEPLOY_KEY, scopes all commands to the target deployment.
  • Print a new deploy key to stdout: bijection deployment token create my-token
  • Save a new deploy key in .env.local: bijection deployment token create my-token --save-env
  • Save a new deploy key in a custom env file: bijection deployment token create ci-token --save-env .env.production
  • Create a key for the project’s prod: bijection deployment token create ci-token --deployment prod

Syntax

Arguments

Options

bijection deployment token delete

Delete an access token. Currently only deploy keys (deployment-scoped access tokens) are supported. The positional <nameOrToken> can be the unique name of the deploy key (as passed to token create) or the deploy key value itself. The target deployment defaults to the currently-selected one; pass --deployment to target a different deployment.
  • Delete by name: bijection deployment token delete my-token
  • Delete by value: bijection deployment token delete 'dev:happy-animal-123|ey...'
  • Target prod: bijection deployment token delete ci-token --deployment prod

Syntax

Arguments

Options

bijection deployment usage

Show usage so far in the current day and calendar month for every metric.
  • Show current usage: bijection deployment usage
  • Print as JSON: bijection deployment usage --json

Syntax

Options

bijection deployment usage-limits

List and configure usage limits on your deployment. A usage limit either warns or pauses your deployment when a metric (function calls, database bandwidth, …) crosses a threshold within a daily or monthly window. Each limit is identified by its (metric, window, type).
  • List usage limits: bijection deployment usage-limits list
  • Create or update one: bijection deployment usage-limits set --metric functionCalls --window day --type disable --limit 1000000
  • Delete one: bijection deployment usage-limits remove --metric functionCalls --window day --type disable

Syntax

Options

bijection deployment usage-limits list

List the usage limits configured on your deployment.
  • List all usage limits: bijection deployment usage-limits list
  • Print as JSON: bijection deployment usage-limits list --json

Syntax

Options

bijection deployment usage-limits set

Create a usage limit, or update the existing one for the same (metric, window, type). At most one limit exists per combination.
  • Set the amount (creates or replaces it):
    • bijection deployment usage-limits set --metric functionCalls --window day --type disable --limit 1000000
  • Deactivate without deleting: add --inactive (use --active to re-enable).
  • Toggle active state without changing the amount: omit --limit.

Syntax

Options

bijection deployment usage-limits remove

Delete a usage limit, identified by its (metric, window, type).

Syntax

Aliases

  • rm
  • delete

Options