Reis CLI
Authenticating, deploying and managing Bahriya resources from the command line.
43 articles
Installing Reis
Install Reis, the Bahriya CLI, as a single self-contained binary: Homebrew, shell installer, direct download or Docker, plus updating and uninstalling.
3 minReis CLI
Reis is the official Bahriya command-line interface: manage projects, deploy containers, store secrets and apply declarative YAML from the terminal.
2 minDeploy JSON Configs with Reis (YAML Mode)
Deploy JSON configuration files to Bahriya via Reis YAML manifests: declare a json_config kind with your content and apply it with the reis apply command.
1 minDeploy JSON Configs with Reis (Flag Mode)
Deploy JSON configuration files to Bahriya with Reis flags: create from a file, rotate content, list versions, roll back, and attach to your projects.
1 minDeploy Plain Configs with Reis (Flag Mode)
Deploy plain-text configuration files to Bahriya with Reis flags: create from a file or inline, rotate content, roll back versions, and attach to projects.
1 minDeploy Plain Configs with Reis (YAML Mode)
Deploy plain-text configuration files to Bahriya via Reis YAML manifests: declare a plain_config kind with content stored as-is and mounted into containers.
1 minDeploy Env Files with Reis (Flag Mode)
Deploy .env-style files to Bahriya with Reis flags: create from a content file, rotate, list versions, activate a previous one, and attach to projects.
1 minDeploy Env Files with Reis (YAML Mode)
Deploy .env-style files to Bahriya via Reis YAML manifests: declare an env_file kind with key=value content and apply it, ready to mount into containers.
1 minAuthentication
Authenticate Reis, the Bahriya CLI, with a personal access token: log in, check status, set your organisation, and use environment variables.
2 minCommands Reference
Complete Reis command reference for the Bahriya CLI: auth, organisations, projects, containers, Memcached, Valkey, registries, secrets, apply and export.
15 minDeploy a cron job with flags
Deploy a cron job container on Bahriya with Reis flags: schedule, timezone, retries and concurrency policy, plus pausing, resuming and ad-hoc runs.
3 minDeploy a cron job with YAML
Deploy a cron job container on Bahriya with a Reis YAML manifest: schedule, timezone, concurrency policy and execution settings, applied with reis apply.
3 minDeploy a worker with flags
Deploy a worker container on Bahriya with Reis flags: a long-running background process with no public exposure, from a minimal create to a full deploy.
2 minDeploy a worker with YAML
Deploy a worker container on Bahriya with a Reis YAML manifest: command and args, observability and worker-specific fields for background processes.
2 minDeploy an HTTP container with flags
Deploy an HTTP container on Bahriya with Reis flags: image, port, healthcheck, regions, autoscaling and secrets, from a minimal create to a full deploy.
3 minDeploy an HTTP container with YAML
Deploy an HTTP container on Bahriya with a Reis YAML manifest: workload, autoscaling, custom hostnames, observability and security, field by field.
3 minDeploy Encryption Keys with Reis (Flag Mode)
Create and manage encryption keys with Reis flag-mode commands: create from a key file, rotate, list versions, roll back, and attach to Bahriya projects.
1 minDeploy Encryption Keys with Reis (YAML Mode)
Declare encryption keys under the vaults section of bahriya.yml and apply with reis apply: file helper, project attachment, container wiring and rotation.
1 minDeploy GPG Keypairs with Reis (Flag Mode)
Create and manage GPG keypairs with Reis flag-mode commands: upload ASCII-armoured keys, rotate, roll back versions, and attach to Bahriya projects.
1 minDeploy GPG Keypairs with Reis (YAML Mode)
Declare GPG keypairs under the vaults section of bahriya.yml and apply with reis apply: the file helper, project attachment, container wiring and rotation.
1 minDeploy Memcached with flags
Deploy a managed Memcached instance on Bahriya with Reis flags: memory, nodes and regions, from a single-node cache to a multi-node production cache.
2 minDeploy Memcached with YAML
Deploy a managed Memcached instance on Bahriya with a Reis YAML manifest: tuning, regions and a field reference, plus connecting from your containers.
2 minDeploy Network Policies with Reis (YAML Mode)
Declare Bahriya network policies in YAML: ingress peers, egress CIDRs and FQDNs, port scoping and per-workload scoping, applied with reis apply.
1 minDeploy SSH Keypairs with Reis (Flag Mode)
Create and manage SSH keypairs with Reis flag-mode commands: upload public and private keys, rotate, roll back versions, and attach to Bahriya projects.
1 minDeploy SSH Keypairs with Reis (YAML Mode)
Declare SSH keypairs under the vaults section of bahriya.yml and apply with reis apply: the file helper, project attachment, container wiring and rotation.
1 minDeploy TLS Bundles with Reis (Flag Mode)
Create and manage TLS bundles with Reis flag-mode commands: upload CA, certificate and key PEM files, rotate, roll back, and attach to Bahriya projects.
1 minDeploy TLS Bundles with Reis (YAML Mode)
Declare TLS bundles under the vaults section of bahriya.yml and apply with reis apply: PEM file helpers, project attachment, container wiring and rotation.
1 minDeploy Valkey with flags
Deploy a managed Valkey instance on Bahriya with Reis flags: cache or store purpose, tiers, TLS exposure and tuning, from single node to sharded cluster.
4 minDeploy Valkey with YAML
Deploy a managed Valkey instance on Bahriya with a Reis YAML manifest: cache or store purpose, tiers, TLS exposure, tuning and a full field reference.
4 minDeploy X.509 Certificates with Reis (Flag Mode)
Create and manage X.509 certificates with Reis flag-mode commands: upload a PEM certificate, rotate, roll back versions, and attach to Bahriya projects.
1 minDeploy X.509 Certificates with Reis (YAML Mode)
Declare X.509 certificates under the vaults section of bahriya.yml and apply with reis apply: file helper, project attachment, container wiring, rotation.
1 minDeploy YAML Configs with Reis (Flag Mode)
Create and manage YAML configs with Reis flag-mode commands: create from a content file, rotate, list versions, roll back, and attach to Bahriya projects.
1 minDeploy YAML Configs with Reis (YAML Mode)
Declare YAML configs under the configs section of bahriya.yml and apply with reis apply: the file helper, project attachment, container wiring and rotation.
1 minFlag mode
Use Reis flag mode to drive every create and update command from the shell: scripting idioms, interactive prompts, repeatable and boolean flags on Bahriya.
3 minManage Billing Details with Reis (Flag Mode)
Manage your organisation's billing details from the Reis CLI with flags: show current values and update the Bill To identity printed on Bahriya invoices.
2 minManage Billing Details with Reis (YAML Mode)
Declare your organisation's billing details as a YAML document and apply with reis apply, keeping your Bahriya invoice identity in version control.
2 minManage HTTP container path rules with Reis (Flag Mode)
Manage path rules on a Bahriya HTTP container with Reis flags: basic auth, rate limiting and IP allow or deny lists scoped to specific URL paths.
2 minManage HTTP container path rules with Reis (YAML Mode)
Declare path rules for a Bahriya HTTP container in YAML: basic auth, rate limiting and IP lists per URL path, where the longest matching path wins.
3 minManage Network Policies with Reis (Flag Mode)
Manage Bahriya network policies from the Reis CLI with flags: ingress peers, egress CIDR and FQDN rules, L7 controls, and project attach and detach.
2 minManage Roles and Sharing with Reis (Flag Mode)
Manage roles and sharing with Reis flag-mode commands: list and create custom roles, assign members to roles, and share individual Bahriya resources.
2 minManage Roles with Reis (YAML Mode)
Declare custom Bahriya roles as kind: role YAML documents and apply with reis apply: the permissions block, create-or-update by handle, and sharing.
1 minUsing Reis in CI/CD Pipelines
Run Reis, the Bahriya CLI, in CI/CD pipelines: authenticate with REIS_TOKEN, use JSON output and exit codes, with GitHub Actions and GitLab CI examples.
4 minYAML mode
Manage Bahriya infrastructure declaratively with Reis YAML mode: file format, multi-document layout, create-or-update semantics, dry runs and exports.
6 min