Skip to content
pols.so docs
Esc
↑↓navigate↵open⌘Jpreview
On this page

pols org

Show your org, your role in it, its quotas and what it uses; list and switch orgs

Show the org the API key acts in, your role in it, its quotas and what it uses. A key acts in the one org it was made in: pols org list lists your orgs, and pols org use switches to another one’s key.

Usage

pols org [flags]
pols org [command]

Subcommands

Command Description
pols org limit Set how many of the org’s sandboxes may run at once or exist (owners and admins)
pols org list List your orgs: * marks the one the key acts in
pols org use Use another of your orgs: its stored key, or a new one approved by email

Flags

-h, --help   help for org

pols org limit

Set how many of the org’s sandboxes may run at once, those in standby included, and with --sandboxes how many may exist, stopped ones included; unlimited, the default, removes a limit, and a limit not given is kept. A lower limit applies to the next create, fork or resume; nothing running is stopped and nothing is deleted. Only owners and admins may change them.

Usage

pols org limit [N|unlimited] [--sandboxes N|unlimited] [flags]

Examples

pols org limit 10
pols org limit unlimited
pols org limit --sandboxes 50
pols org limit unlimited --sandboxes unlimited

Flags

-h, --help               help for limit
    --sandboxes string   how many sandboxes may exist, stopped ones included: N or unlimited

pols org list

List your orgs: * marks the one the key acts in

Usage

pols org list [flags]

Flags

-h, --help   help for list

pols org use

Make later commands act in ORG, one of your orgs (pols org list), by its ID or name. pols switches to the key it stored for ORG; without one it logs in by email for a key of ORG, like pols login --email --org ORG: pols emails the address a link and a code, which this command prints too. The person there checks that the codes match and approves with one click on my.pols.so: for an address without an account that creates it (they accept the terms and the free trial starts), and approving logs an existing account’s owner in. Meanwhile the command waits, for at most 15 minutes, then saves a new API key named “created by agent on <date>” like pols login does. The key acts as that person and can be revoked on my.pols.so like any other. Nothing is created before they approve.

An agent whose commands time out can pass --no-wait, show the person the code, and run the same command again to wait: it resumes the same request instead of emailing again.

Usage

pols org use ORG [flags]

Examples

pols org use org_3k9x2m1q8zt4
pols org use Acme --no-wait

Flags

-h, --help          help for use
    --name string   how this agent describes itself in the email and the key's name (default "pols CLI on <hostname>")
    --no-wait       ask and print the code, then exit; run the same command again to wait for the approval

The global flags work with this command too.