The command line
pnpm --filter @fiber/cli build makes apps/cli/dist/fiber.js: one file that needs Node 24 and nothing
else. node fiber.js --help lists the commands.
export FIBER_API_URL=https://ci.example.comfiber login # with GitHub; or --username NAMEfiber pipelines apply --project <id>fiber run <pipeline> --follow-
loginuses GitHub where the server hasFIBER_DEVICE_SIGN_INon (see sign-in), or a password with--username: asked for, or from--password-stdin. Never as an argument. -
A session is kept in
~/.fiber/sessions.json, for its owner only, and is sent only to the server it is of.logoutends it. In scripts setFIBER_TOKEN, which needs--serverorFIBER_API_URL. -
A server is reached over https, but on this machine.
-
--waitand--followexit with how the run ended: 0 when it succeeded, 1 when not, 3 when it had not ended in time. 1 is also an error, and 2 a wrong command. A poll that fails is tried 5 times; starting a run is not, as it may have started. A pipe that is closed does not end the wait. Where there is no time for all of the output of a run that ended, that is said, and the exit is the run’s. -
Control characters of output are taken out, so that a step cannot act on the terminal.
--jsonhas all, escaped. -
pipelines applyupdates the pipeline of that name, or makes one. Where two have it, give--id. -
artifacts downloadchecks the file against its hash, replaces nothing that is there, and leaves nothing when it fails. A name that is hidden, is like an option, or holds a path needs--out. -
secrets setasks for a value of one line, or takes all of stdin with--value-stdin, less one newline at its end. -
agents createandrotateprint the token on stdout, once:TOKEN=$(fiber agents create --name a). Without--projectan agent takes any project’s steps, and only an instance admin may make or list those. -
tasks start <project> <kind>starts a durable task and prints its id;tasks kindslists the kinds there are. Its input is JSON, from--inputor all of stdin with--input-stdin, and is checked here before it is sent. An input is seen by the project’s readers, so a credential in it is not hidden.--wake-attakes an RFC 3339 time, at most 30 days away. See tasks. -
source <(fiber completions bash);zshandfishtoo. -
agentruns steps on this machine: it startsfiber-runner.js, from besidefiber.jsor--runner, for the server named by--serverorFIBER_API_URL, never the one last signed in to, with an agent’s token. The token comes fromFIBER_AGENT_TOKEN, all of stdin with--token-stdin, or is asked for; never as an argument.--dockerand--workspace DIRsetFIBER_AGENT_USE_DOCKERandFIBER_AGENT_WORKSPACE_DIR; the rest of the runner’s settings are read from the environment.FIBER_TOKENis not passed on. It exits as the runner does: 0 when stopped, 2 when its token or protocol is refused. Ctrl-C reaches the runner once, andSIGTERMtofiberis passed on;SIGINT,SIGHUPandSIGQUITsent tofiberalone are not. Under a service manager that signals every process, runfiber-runner.jsitself.