Skip to content
A command-line client for Fastly Terrarium.
Branch: master
Clone or download
jedisct1 Add freebsd/armv7 builds
On FreeBSD, generic ARM builds don't work on ARMv7+.
Latest commit 68d3419 Apr 15, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
terrctl Merge pull request #2 from fastly/fdenis/handle-malformed-json Mar 12, 2019
vendor Switch from Go dep to Go modules Mar 11, 2019
.gitignore Initial import Jan 19, 2019
.travis.yml Add freebsd/armv7 builds Apr 15, 2019
LICENSE-APACHE Initial import Jan 19, 2019
LICENSE-MIT Initial import Jan 19, 2019 Initial import Jan 19, 2019
go.mod Switch from Go dep to Go modules Mar 11, 2019
go.sum Switch from Go dep to Go modules Mar 11, 2019
logo.png Initial import Jan 19, 2019

Build Status


terrctl uploads source code leveraging the Fastly Labs Terrarium API directly to the Terrarium sandbox.


Pre-built binaries for most platforms are available in the release section.


Usage: terrctl [options] <source code path>

  -deploy-timeout uint
    	Timeout for deployment (seconds) (default 90)
  -health-timeout uint
    	Timeout for health checks (seconds) (default 30)
  -http-timeout uint
    	Timeout for HTTP client queries (seconds) (default 30)
  -language string
    	language (auto|c|rust|assemblyscript|wasm) (default "auto")
  -logfile string
    	Write logs to file
  -loglevel value
    	Log level (0-6) (default 1)
  -max-deploy-attempts uint
    	Maximum number of attempts for deployment (default 10)
    	Send logs to the local system logger (Eventlog on Windows, syslog on Unix)


./terrctl /tmp/src/image_example

[2019-01-19 00:30:36] [INFO] Preparing upload of directory [/tmp/src/image_example]
[2019-01-19 00:30:36] [INFO] Guessed programming language: c
[2019-01-19 00:30:36] [NOTICE] Upload in progress...
[2019-01-19 00:30:42] [NOTICE] Upload done, compilation in progress...
[2019-01-19 00:30:43] [INFO] Upload complete, waiting for build...
[2019-01-19 00:30:44] [INFO] Building...
[2019-01-19 00:30:51] [INFO] Generating machine code...
[2019-01-19 00:31:00] [INFO] Deploying...
[2019-01-19 00:31:02] [INFO] Deploy complete:
[2019-01-19 00:31:02] [INFO] Instance is deployed
[2019-01-19 00:31:23] [NOTICE] Instance is running and reachable over HTTPS
[2019-01-19 00:31:23] [NOTICE] New instance deployed at []


You can’t perform that action at this time.