CLI
socialpublish (short: sp) runs Social Publish from your terminal or CI. It is one file with nothing
else to install, for Windows, macOS and Linux.
Install
Section titled “Install”go build -o socialpublish ./cmd/socialpublishSign in
Section titled “Sign in”sp login # opens your browser to sign insp login --token agp_… # or use an API tokensp whoamisp logoutIn CI, skip login and set an environment variable instead:
export SOCIALPUBLISH_TOKEN=agp_…Options on every command
Section titled “Options on every command”| Option | Does |
|---|---|
--json |
Machine-readable output for scripts |
--workspace <name> |
Use another workspace for this one command |
--base-url <url> |
Talk to another server (e.g. local) |
sp use "Acme Bakery" sets the default workspace. sp workspaces and sp accounts list what you have.
sp usage shows this month’s API calls.
When the server refuses something, the CLI prints the server’s own message.