Global Usage
Server Commands
Manage Frontier server lifecycle, configuration, and database migrations.server init
Initialize a new Frontier server configuration file.Output path for the configuration file
server start
Start the Frontier server.Path to the server configuration file
The server starts on port 8080 by default. Configure the port in your config file under
app.port.server migrate
Run database schema migrations.Path to the server configuration file containing database connection details
- Runs all pending database migrations
- Populates default metadata schemas
- Updates the schema version
server migrate-rollback
Rollback the last database migration.Path to the server configuration file
This command rolls back only the most recent migration. Run multiple times to rollback further.
server keygen
Generate RSA keys in JWKS format for JWT token generation.Number of RSA key pairs to generate
User Commands
Manage user accounts in Frontier.user create
Create a new user.Path to JSON file containing user data
Authentication header in format
key:valueuser.json
user edit
Update an existing user.User ID or slug to update
Path to JSON file containing updated user data
user view
View details of a specific user.User ID or slug to view
Include metadata in the output
user list
List all users.Organization Commands
Manage organizations.organization create
Create a new organization.Path to JSON file containing organization data
Authentication header in format
key:valueorganization.json
organization edit
Update an existing organization.Organization ID to update
Path to JSON file containing updated organization data
organization view
View details of a specific organization.Organization ID to view
Include metadata in the output
organization list
List all organizations.organization admlist
List administrators of an organization.Organization ID to query
Project Commands
Manage projects within organizations.project create
Create a new project.Path to JSON file containing project data
Authentication header in format
key:valueproject.json
project edit
Update an existing project.Project ID to update
Path to JSON file containing updated project data
project view
View details of a specific project.Project ID to view
Include metadata in the output
project list
List all projects in an organization.Organization ID to list projects from
Group Commands
Manage user groups within organizations.group create
Create a new group.Path to JSON file containing group data
Authentication header in format
key:valuegroup.json
group edit
Update an existing group.Group ID to update
Path to JSON file containing updated group data
group view
View details of a specific group.Organization ID
Group ID to view
Include metadata in the output
group list
List all groups in an organization.Organization ID to list groups from
Role Commands
Manage roles and their permissions.role create
Create a new role.Path to JSON file containing role data
Authentication header in format
key:valuerole.json
role edit
Update an existing role.Role ID to update
Path to JSON file containing updated role data
role view
View details of a specific role.Role ID to view
Include metadata in the output
role list
List all roles.Permission Commands
Manage permissions (also called actions).permission create
Create new permissions.Path to JSON file containing permission data
Authentication header in format
key:valuepermission.json
permission edit
Update an existing permission.Permission ID to update
Path to JSON file containing updated permission data
permission view
View details of a specific permission.Permission ID to view
permission list
List all permissions.Policy Commands
Manage authorization policies.policy create
Create a new policy to grant a role to a principal on a resource.Path to JSON file containing policy data
Authentication header in format
key:valuepolicy.json
Principal Format: Principals follow the format
namespace:id, for example:- User:
app/user:<user-id> - Group:
app/group:<group-id> - Service User:
app/serviceuser:<serviceuser-id>
policy edit
Update an existing policy.Policy ID to update
Path to JSON file containing updated policy data
policy view
View details of a specific policy.Policy ID to view
Namespace Commands
Manage permission namespaces.namespace list
List all namespaces.namespace view
View details of a specific namespace.Namespace ID to view
Seed Command
Bootstrap Frontier with sample data.seed
Populate the database with sample data including users, organizations, projects, groups, and resources.Authentication header key (value will be set to [email protected])
Path to server configuration file (to read identity proxy header if —header not provided)
- Custom permissions and roles
- Sample users
- Sample organizations with admins
- Sample service users and credentials
- Sample projects within organizations
- Sample resources within projects
- Sample policies granting access
The seed command uses
[email protected] as the admin email. All created resources will be associated with this identity.Preferences Commands
Manage platform and resource preferences.preferences list
List all configured preferences.Authentication header in format
key:valuepreferences set
Set a preference value.Name of the preference trait
Value to set for the preference
Authentication header in format
key:valuepreferences get
Get the list of available preference traits and their definitions.Authentication header in format
key:valueConfig Commands
Manage CLI client configuration.config init
Initialize a new client configuration file.config list
Display the current client configuration.Version Command
Display version information and check for updates.version
Show the Frontier CLI version, build date, and commit.The version command automatically checks for newer releases and notifies you if an update is available.
Global Flags
These flags are available across multiple commands:Common Client Flags
Frontier server host URL (can also be set in client config)Example:
--host http://localhost:8080Authentication header in
key:value formatExample: --header X-Frontier-Email:[email protected]Path to JSON file containing request bodyExample:
--file user.jsonInclude metadata in output (for view commands)Example:
--metadataServer Command Flags
Path to server configuration fileExample:
--config /etc/frontier/config.yamlHelp Topics
Frontier provides additional help documentation for specific topics.Help Environment
View information about supported environment variables:Help Auth
View information about authentication configuration:Examples
Complete Workflow Example
Here’s a complete workflow for setting up a new organization with users and projects:Batch Operations Example
Next Steps
CLI Overview
Learn about CLI capabilities and features
Installation
Install and configure the CLI
Shell Autocomplete
Enable command autocompletion