DocsFeatures
Laravel Forge
Give a project its Laravel Forge account, and TermF imports its servers and sites as Ops connections, databases and deploy targets. Then you follow and redeploy each site from Ops.

The project's account
- In Ops, open Forge.
- Fill Account label and API token: create the token on forge.laravel.com, under API Tokens. When the Forge CLI on this machine has a token, Reuse this token takes it instead, after your click only.
- Test checks the token and names its organization and its number of servers; a token that sees several organizations lets you pick yours.
- Save tests the token first and writes nothing if it fails. The token goes to the vault, as a global production secret named after the label, such as
FORGE_TOKEN_ACME_AGENCY. The project's file keeps only the label, the organization and the secret's name, in[ops.forge].
Each project has its own account. Agents never see the token: an agent that sets up the account asks you to type it on its card.
Import servers and sites
- Import from Forge, then List the servers: each server with its sites, and each site's repository and branch.
- Check the sites you want, then Import.
For each one, TermF creates:
- the SSH connection
forge@ipof its server, with the site folder when it is the only site imported on that server; - the site's database, read from its environment through Forge's API (MySQL, MariaDB or Postgres), reached through the server's SSH tunnel. Its password goes to the vault, never to the project's file;
- a Forge deploy target in CI/CD, linked to the project's repository of the same name.
A connection that already has the same name is kept, and TermF says so.
Deployments

- Deployments of a site: each one's state, commit, author and date.
- A click shows its log, masked by the vault, the token removed.
- Redeploy runs the site's deployment script on its server, after a confirmation.
The Forge deploy targets of CI/CD use the project's account when they have no token of their own.
With an agent
From ⌘I on Ops, an agent lists the servers and sites without a card, and sets up the account, imports sites and redeploys one, each through its card. See Agents that act for you.